From bc197f9409f13644af05ab2108df71b32c542433 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 20 May 2026 12:22:19 +0000 Subject: [PATCH] Omit migration tests from code coverage --- codecov.yml | 3 +++ pyproject.toml | 1 + 2 files changed, 4 insertions(+) diff --git a/codecov.yml b/codecov.yml index b06601b57b..b49179c3ed 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,3 +1,6 @@ +ignore: + - "src/backend/InvenTree/**/test_migrations.py" + coverage: status: project: diff --git a/pyproject.toml b/pyproject.toml index 63a0fd5a6e..169e5a1f89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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