diff --git a/tests/conftest.py b/tests/conftest.py index f84d3a9..0dce491 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,7 +5,6 @@ import mocks import pytest -import pytest_asyncio from fastapi.testclient import TestClient import bot @@ -25,8 +24,8 @@ def threads_appear_dead(monkeypatch): monkeypatch.setattr(Thread, "is_alive", lambda x: False) -@pytest_asyncio.fixture -async def db_cleanup(): +@pytest.fixture +def db_cleanup(): """ Fixture to clean the database after tests. """