fix: Address code review feedback - datetime, event_loop, and readability

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-06 22:05:09 +00:00
parent d1be17c1c3
commit da4d501acb
3 changed files with 4 additions and 8 deletions
+2 -6
View File
@@ -18,12 +18,8 @@ from app.core.security import get_password_hash, create_access_token
TEST_DATABASE_URL = settings.DATABASE_URL.replace("/pop3_forwarder", "/pop3_forwarder_test")
@pytest.fixture(scope="session")
def event_loop() -> Generator:
"""Create event loop for async tests"""
loop = asyncio.get_event_loop_policy().new_event_loop()
yield loop
loop.close()
# Note: event_loop fixture removed - pytest-asyncio provides this automatically
# when asyncio_mode = auto is set in pytest.ini
@pytest.fixture(scope="function")