79834875

Date: 2025-12-01 13:22:15
Score: 1
Natty:
Report link

You need to tell pytest-django to keep the data loaded in initial_db for the duration of the session, or ensure it's committed in a way that survives the test rollback.

Here is the correct way to implement Session-scoped Data Fixtures with pytest-django.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: P Jaideep