From 5a5dade877ec693a7b5748a4a32ec94db21b5205 Mon Sep 17 00:00:00 2001 From: Matthew Thornton <44626690+ThorntonMatthewD@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:10:35 -0400 Subject: [PATCH] Fix index error bug --- tests/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. """