diff --git a/pyproject.toml b/pyproject.toml index 05c68841ff..cad91e8b2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -206,7 +206,7 @@ source = [ "tests", "fastapi" ] -context = '${CONTEXT}' +dynamic_context = "test_function" omit = [ "docs_src/response_model/tutorial003_04.py", "docs_src/response_model/tutorial003_04_py310.py", diff --git a/scripts/test-cov-html.sh b/scripts/test-cov-html.sh index d1bdfced2a..85aef96018 100755 --- a/scripts/test-cov-html.sh +++ b/scripts/test-cov-html.sh @@ -6,4 +6,4 @@ set -x bash scripts/test.sh ${@} coverage combine coverage report --show-missing -coverage html +coverage html --show-contexts