Skip to content

Commit 9c18103

Browse files
build(deps-dev): bump the pytest-dependencies group across 1 directory with 3 updates (#393)
* build(deps-dev): bump the pytest-dependencies group across 1 directory with 3 updates Bumps the pytest-dependencies group with 3 updates in the / directory: [pytest](https://github.com/pytest-dev/pytest), [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) and [pytest-cov](https://github.com/pytest-dev/pytest-cov). Updates `pytest` from 8.3.4 to 8.3.5 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.4...8.3.5) Updates `pytest-asyncio` from 0.25.0 to 0.26.0 - [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases) - [Commits](pytest-dev/pytest-asyncio@v0.25.0...v0.26.0) Updates `pytest-cov` from 6.0.0 to 6.1.0 - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v6.0.0...v6.1.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch dependency-group: pytest-dependencies - dependency-name: pytest-asyncio dependency-type: direct:development update-type: version-update:semver-minor dependency-group: pytest-dependencies - dependency-name: pytest-cov dependency-type: direct:development update-type: version-update:semver-minor dependency-group: pytest-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * tests(pytest-asyncio): add custom event_loop fixture --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ReenigneArcher <[email protected]>
1 parent 46bb864 commit 9c18103

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
betamax==0.9.0
22
betamax-serializers==0.2.1
3-
pytest==8.3.4
4-
pytest-asyncio==0.25.0
5-
pytest-cov==6.0.0
3+
pytest==8.3.5
4+
pytest-asyncio==0.26.0
5+
pytest-cov==6.1.1
66
pytest-mock==3.14.0

tests/conftest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# standard imports
2+
import asyncio
23
import os
34
import time
45

@@ -66,3 +67,17 @@ def no_github_token():
6667
yield
6768

6869
os.environ['GITHUB_TOKEN'] = og_token
70+
71+
72+
@pytest.fixture(scope="session")
73+
def event_loop():
74+
"""
75+
Create an event loop that isn't closed after each test.
76+
77+
This is necessary for pytest-asyncio 0.26.0 and later, as it fails to closes the loop after each test.
78+
"""
79+
loop = asyncio.new_event_loop()
80+
asyncio.set_event_loop(loop)
81+
yield loop
82+
83+
loop.close()

0 commit comments

Comments
 (0)