Coverage for tests/test_tutorial/test_testing/test_app01.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
1import subprocess 1abcdefgh
2import sys 1abcdefgh
4from docs_src.testing.app01 import main as mod 1abcdefgh
5from docs_src.testing.app01.test_main import test_app 1abcdefgh
8def test_app01(): 1abcdefgh
9 test_app() 1abcdefgh
12def test_script(): 1abcdefgh
13 result = subprocess.run( 1abcdefgh
14 [sys.executable, "-m", "coverage", "run", mod.__file__, "--help"],
15 capture_output=True,
16 encoding="utf-8",
17 )
18 assert "Usage" in result.stdout 1abcdefgh