test: update test fixtures to use @with_session decorator

- Replace manual session management in test fixtures with @with_session decorator
- Simplify async test fixtures by removing explicit session handling
- Update dependencies in pyproject.toml and uv.lock
This commit is contained in:
2025-09-23 12:09:26 -06:00
parent 8ad1270229
commit 27b3b9cdee
14 changed files with 1776 additions and 1837 deletions

View File

@@ -10,7 +10,7 @@ from reflector.db.rooms import rooms_controller
@pytest.mark.asyncio
async def test_multiple_active_meetings_per_room(session):
async def test_multiple_active_meetings_per_room(db_db_session):
"""Test that multiple active meetings can exist for the same room."""
# Create a room
room = await rooms_controller.add(
@@ -65,7 +65,7 @@ async def test_multiple_active_meetings_per_room(session):
@pytest.mark.asyncio
async def test_get_active_by_calendar_event(session):
async def test_get_active_by_calendar_event(db_db_session):
"""Test getting active meeting by calendar event ID."""
# Create a room
room = await rooms_controller.add(
@@ -120,7 +120,7 @@ async def test_get_active_by_calendar_event(session):
@pytest.mark.asyncio
async def test_calendar_meeting_deactivates_after_scheduled_end(session):
async def test_calendar_meeting_deactivates_after_scheduled_end(db_db_session):
"""Test that unused calendar meetings deactivate after scheduled end time."""
# Create a room
room = await rooms_controller.add(