-
Notifications
You must be signed in to change notification settings - Fork 10
Decouple test data from seed.json to improve test stability and flexibility #408
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
Our test cases currently depend on the global seed.json file for initial data setup.
This reduces flexibility because any change in seed.json can unintentionally break multiple test suites.
Examples of issues:
- Changing or regenerating IDs in seed.json breaks tests referencing fixed organization_id or project_id.
- Removing or renaming records (e.g., users, credentials) causes missing-entity errors in dependent tests.
- Adding new data changes query counts (e.g., tests expecting only one organization now get multiple).
- Schema updates or relationship changes make old seed.json data invalid.
Proposed Solution
Create a dedicated test baseline (e.g., test_seed.py or setup fixtures) that:
Inserts only essential test data (organization, project, User).
Is isolated from the main application seed.
Can be freely modified.
And couple it with TestAuthContext also.
Inserts only essential test data required for authentication (organization, project, and user).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers
Type
Projects
Status
Closed