Adjust .coveragerc to support concurrency options and skip test environment checks

This commit is contained in:
2025-11-02 05:27:13 +01:00
parent f77f2700f2
commit 1aab73cb72

View File

@@ -1,5 +1,6 @@
[run]
source = app
concurrency = thread,greenlet
omit =
# Migration files - these are generated code and shouldn't be tested
app/alembic/versions/*
@@ -61,6 +62,10 @@ exclude_lines =
# Pass statements (often in abstract base classes or placeholders)
pass
# Skip test environment checks (production-only code)
if os\.getenv\("IS_TEST".*\) == "True":
if os\.getenv\("IS_TEST".*\) != "True":
[html]
directory = htmlcov