:white_check_mark: Fix test coverage handling
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sebastián Ramírez · committed by Sebastián Ramírez · parent e02475a · Browse files · 9 files·+17 added−6 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
9 files+17 added−6 removed
- tests:+6 added−6 removed
- other:+11 added−0 removed
Provenance
- Commit
f00e100- Tree
06881cf- Author
Sebastián Ramírez <tiangolo@gmail.com>- Committer
Sebastián Ramírez <tiangolo@gmail.com>- Parent
e02475a
9 files changed+17 added−6 removed
modified:tests/test_tutorial/test_first_steps/test_tutorial001.py+1 added-1 removed
15 unmodified lines16 17 18 def test_script():19 result = subprocess.run(20- ["coverage", "run", "--parallel-mode", mod.__file__, "--help"],20+ ["coverage", "run", mod.__file__, "--help"],21 stdout=subprocess.PIPE,22 stderr=subprocess.PIPE,23 encoding="utf-8",24 )1 unmodified linemodified:tests/test_tutorial/test_first_steps/test_tutorial002.py+1 added-1 removed
23 unmodified lines24 25 26 def test_script():27 result = subprocess.run(28- ["coverage", "run", "--parallel-mode", mod.__file__, "--help"],28+ ["coverage", "run", mod.__file__, "--help"],29 stdout=subprocess.PIPE,30 stderr=subprocess.PIPE,31 encoding="utf-8",32 )1 unmodified linemodified:tests/test_tutorial/test_first_steps/test_tutorial003.py+1 added-1 removed
23 unmodified lines24 25 26 def test_script():27 result = subprocess.run(28- ["coverage", "run", "--parallel-mode", mod.__file__, "--help"],28+ ["coverage", "run", mod.__file__, "--help"],29 stdout=subprocess.PIPE,30 stderr=subprocess.PIPE,31 encoding="utf-8",32 )1 unmodified linemodified:tests/test_tutorial/test_first_steps/test_tutorial004.py+1 added-1 removed
35 unmodified lines36 37 38 def test_script():39 result = subprocess.run(40- ["coverage", "run", "--parallel-mode", mod.__file__, "--help"],40+ ["coverage", "run", mod.__file__, "--help"],41 stdout=subprocess.PIPE,42 stderr=subprocess.PIPE,43 encoding="utf-8",44 )1 unmodified linemodified:tests/test_tutorial/test_first_steps/test_tutorial005.py+1 added-1 removed
42 unmodified lines43 44 45 def test_script():46 result = subprocess.run(47- ["coverage", "run", "--parallel-mode", mod.__file__, "--help"],47+ ["coverage", "run", mod.__file__, "--help"],48 stdout=subprocess.PIPE,49 stderr=subprocess.PIPE,50 encoding="utf-8",51 )1 unmodified linemodified:tests/test_tutorial/test_first_steps/test_tutorial006.py+1 added-1 removed
42 unmodified lines43 44 45 def test_script():46 result = subprocess.run(47- ["coverage", "run", "--parallel-mode", mod.__file__, "--help"],47+ ["coverage", "run", mod.__file__, "--help"],48 stdout=subprocess.PIPE,49 stderr=subprocess.PIPE,50 encoding="utf-8",51 )1 unmodified lineadded:.coveragerc+8 added
1+[run]2+3+source =4+ typer5+ tests6+ docs/src7+8+parallel = Truemodified:.gitignore+2 added
5 unmodified lines6 dist7 .mypy_cache8 .idea9 site10+.coverage11+htmlcovmodified:pyproject.toml+1 added
37 unmodified lines38 [tool.flit.metadata.requires-extra]39 test = [40 "pytest >=4.0.0",41 "pytest-cov",42+ "coverage",43 "mypy",44 "black",45 "isort"46 ]9 unmodified lines