Skip to content

Ignore Django test lifecycle methods in test files - #104

Merged
albertas merged 5 commits into
mainfrom
task/django-lifecycle-names
Nov 9, 2026
Merged

albertas merged 5 commits into
mainfrom
task/django-lifecycle-names

Conversation

@albertas

@albertas albertas commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What changed

  • Ignore the Django test lifecycle method names setUpTestData, _pre_setup, _post_teardown, _fixture_setup, and _fixture_teardown when they are declared in test files.
  • Keep reporting declarations with those names outside test files, and keep reporting user-invoked Django helpers such as assertContains, assertNumQueries, settings, modify_settings, and captureOnCommitCallbacks.
  • Document the new default in the README and the feature coverage map, with regression tests covering suppression, reporting, classmethod declarations, and nested test directories.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@albertas
albertas merged commit faf277d into main Nov 9, 2026
16 checks passed
@albertas
albertas deleted the task/django-lifecycle-names branch November 9, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants