diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 0702a47..e2c07ba 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout sources uses: actions/checkout@v4.1.7 diff --git a/tests/conftest.py b/tests/conftest.py index 819d8d9..142269b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,14 +16,3 @@ def test_data_fixture(request): with file.open("r") as fh: test_data = json.load(fh) setattr(request.cls, filename, test_data) - - -@pytest.fixture() -def event_loop(): - loop = asyncio.get_event_loop() - yield loop - to_cancel = asyncio.tasks.all_tasks(loop) - for task in to_cancel: - task.cancel() - loop.run_until_complete(asyncio.tasks.gather(*to_cancel, return_exceptions=True)) - loop.close() diff --git a/tests/test_api.py b/tests/test_api.py index dee09d3..8235868 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -30,6 +30,8 @@ async def test_api(self, request, httpx_mock): httpx_mock.add_response(json=request.cls.info) r = await _Api()._call("") # pylint: disable=protected-access assert r.json() == request.cls.info + + httpx_mock.add_response(json=request.cls.info) client = AsyncClient() r = await _Api(client)._call("") # pylint: disable=protected-access await client.aclose()