Omit migration tests from code coverage

This commit is contained in:
Oliver Walters 2026-05-20 12:22:19 +00:00
parent a0e528a509
commit bc197f9409
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,6 @@
ignore:
- "src/backend/InvenTree/**/test_migrations.py"
coverage:
status:
project:

View File

@ -120,6 +120,7 @@ possibly-unbound-attribute="ignore" # 21
[tool.coverage.run]
source = ["src/backend/InvenTree", "InvenTree"]
dynamic_context = "test_function"
omit = ["*/test_migrations.py"]
[tool.coverage.html]
show_contexts = true