Skip to content

Commit

Permalink
Fix tests (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Sep 25, 2024
1 parent a081f66 commit 6315d76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ jobs:
python -m build
twine check dist/*
- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

check: # This job does nothing and is only used for the branch protection
if: always()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
aiohttp==3.9.1
aiomcache==0.8.1
cryptography==41.0.7
docker==6.1.3
docker==7.1.0
multidict==6.0.4
pynacl==1.5.0
pytest==7.4.3
Expand Down
9 changes: 0 additions & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ def unused_port() -> int: # pragma: no cover
return port


@pytest.fixture(scope="session")
def event_loop() -> Iterator[asyncio.AbstractEventLoop]:
"""Redefine event_loop with session scope (from pytest-asyncio)."""
policy = asyncio.get_event_loop_policy()
loop = policy.new_event_loop()
yield loop
loop.close()


@pytest.fixture(scope="session")
def session_id() -> str:
"""Unique session identifier, random string."""
Expand Down

0 comments on commit 6315d76

Please sign in to comment.