Refactor event API and extend authentication utilities
Refactored the event API routes to improve error handling, add logging, and provide enhanced response structures with pagination. Updated tests to use new fixtures and include additional authentication utilities to facilitate testing with FastAPI's dependency injection. Also resolved issues with timezone awareness in event schemas.
This commit is contained in:
@@ -77,9 +77,9 @@ def test_delete_event_theme(db_session: Session, event_theme_fixture) -> None:
|
||||
assert theme is None
|
||||
|
||||
|
||||
def test_get_active_themes(db_session: Session, event_theme_fixture, event_fixture) -> None:
|
||||
def test_get_active_themes(db_session: Session, event_theme_fixture, mock_event) -> None:
|
||||
# First, ensure the theme is associated with an event
|
||||
event_fixture.theme_id = event_theme_fixture.id
|
||||
mock_event.theme_id = event_theme_fixture.id
|
||||
db_session.commit()
|
||||
|
||||
# Get active themes
|
||||
|
||||
Reference in New Issue
Block a user