Coverage for tests / test_tutorial / test_testing / test_app03.py: 100%
9 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-09 12:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-09 12:36 +0000
1import subprocess 1abcdefgh
2import sys 1abcdefgh
4from docs_src.testing.app03_py39 import main as mod 1abcdefgh
5from docs_src.testing.app03_py39.test_main import test_app 1abcdefgh
8def test_app03(): 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