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