Livia-1212 / event_manager

MIT License
0 stars 0 forks source link

General Improvements in Test Data and Fixtures #5

Open Livia-1212 opened 14 hours ago

Livia-1212 commented 14 hours ago

Tests frequently fail due to incomplete or missing fixture data. For example, missing fields in user_base_data and user_create_data cause repeated KeyError issues.

Affected Fixtures and Tests: user_base_data user_create_data user_update_data

Attempted Fix:

  1. Audit and update all fixtures to ensure they include the required fields.
  2. Test fixtures in isolation before running dependent test cases to identify missing data early.
Livia-1212 commented 14 hours ago

In conftest.py, updated fixtures: @pytest.fixture def user_base_data(): return { "username": "john_doe_123", "email": "john.doe@example.com", "full_name": "John Doe", "nickname": "johnjohn", "bio": "I am a software engineer with over 5 years of experience.", "profile_picture_url": "https://example.com/profile_pictures/john_doe.jpg" }