You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(save_without_update_fields): suppress violations in test files
Test files (test_*.py, *_test.py, /tests/ paths) use .save() for
fixture setup, not concurrent Django model updates — no race condition
risk applies. 521/1241 (42%) of corpus violations were in test files,
including 101/111 flagged in celery/django-celery-beat.
Also extracts _is_test_file() helper for potential reuse.
Adds test: test_save_in_test_file_not_flagged (171 tests total).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments