fix: Fix pytest-asyncio compatibility issues

- Remove loop_scope parameter from pytest.mark.asyncio (not supported in 1.2.0)
- Remove asyncio_mode and asyncio_default_fixture_loop_scope config options
- Tests now running successfully (6 passed in quick test)
This commit is contained in:
2025-10-28 12:23:15 -07:00
parent e71752cead
commit 6ad1592dc3
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ logging.getLogger("hanzoai").setLevel(logging.DEBUG)
# so we don't have to add that boilerplate everywhere
def pytest_collection_modifyitems(items: list[pytest.Function]) -> None:
pytest_asyncio_tests = (item for item in items if is_async_test(item))
session_scope_marker = pytest.mark.asyncio(loop_scope="session")
session_scope_marker = pytest.mark.asyncio()
for async_test in pytest_asyncio_tests:
async_test.add_marker(session_scope_marker, append=False)