tests: close generator instead of session in test_get_db_yields_async_session

This commit is contained in:
2026-03-26 16:09:44 -04:00
parent 29326ab532
commit 9dad59e25d

View File

@@ -97,7 +97,7 @@ class TestAppSessionDep:
gen = get_db()
session = await gen.__anext__()
assert isinstance(session, AsyncSession)
await session.close()
await gen.aclose()
class TestOffsetPagination: