diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 00000000..6c9775ea --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,28 @@ +codecov: + require_ci_to_pass: yes + branch: dev-1.x + +ignore: + - "glQiwiApi/ext" + - "glQiwiApi/yoo_money" + +coverage: + precision: 2 + round: down + range: "70...100" + +parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no + +comment: + layout: "reach,diff,flags,tree" + behavior: default + require_changes: no + branches: + - dev-1.x + after_n_builds: 6 \ No newline at end of file diff --git a/glQiwiApi/__init__.py b/glQiwiApi/__init__.py index 3ceaac98..383457e2 100644 --- a/glQiwiApi/__init__.py +++ b/glQiwiApi/__init__.py @@ -16,7 +16,7 @@ ) from .yoo_money import YooMoneyAPI -__version__ = "1.0.3" +__version__ = "1.0.3b0" __all__ = ( "QiwiWrapper", diff --git a/pyproject.toml b/pyproject.toml index d856efc9..fb95bd95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "glQiwiApi" -version = "1.0.2" +version = "1.0.3b0" description = "The fast and lightweight wrapper of QIWI and YooMoney API's" authors = ["Gleb Garanin "] repository = "https://github.com/GLEF1X/glQiwiApi" diff --git a/setup.py b/setup.py index c922021d..443bd007 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ 'tests', 'examples', 'examples.*', 'tests', 'tests.*') ), name="glQiwiApi", # Replace with your own username - version="1.0.2", + version="1.0.3b0", author="GLEF1X", author_email="glebgar567@gmail.com", description="Light and fast wrapper of QIWI and YooMoney api's", diff --git a/tests/test_qiwi/test_cache.py b/tests/test_qiwi/test_cache.py index c23f18a1..f97b9ede 100644 --- a/tests/test_qiwi/test_cache.py +++ b/tests/test_qiwi/test_cache.py @@ -14,7 +14,7 @@ @pytest.fixture(name="api") async def api_fixture(credentials: Dict[str, str]): """ Api fixture """ - _wrapper = QiwiWrapper(**credentials, cache_time=CACHE_TIME) + _wrapper = QiwiWrapper(**credentials, cache_time=CACHE_TIME) # type: ignore yield _wrapper await _wrapper.close() @@ -57,7 +57,7 @@ async def test_uncached(self, api: QiwiWrapper, payload1: dict, payload2: dict): async with api: first_response = await api.transactions(**payload1) with pytest.raises(asyncio.TimeoutError): - await asyncio.wait_for(api.transactions(**payload2), 0.04) + await asyncio.wait_for(api.transactions(**payload2), 0.07) second_uncached_response = await api.transactions(**payload2) assert first_response != second_uncached_response