Skip to content

Commit

Permalink
add codecov.yaml config file
Browse files Browse the repository at this point in the history
  • Loading branch information
GLEF1X committed Jul 14, 2021
1 parent ddeae3d commit a441150
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
28 changes: 28 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion glQiwiApi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)
from .yoo_money import YooMoneyAPI

__version__ = "1.0.3"
__version__ = "1.0.3b0"

__all__ = (
"QiwiWrapper",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
repository = "https://github.com/GLEF1X/glQiwiApi"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
description="Light and fast wrapper of QIWI and YooMoney api's",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_qiwi/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a441150

Please sign in to comment.