Coverage for tests / test_cli / test_not_python.py: 100%
5 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-03-26 21:46 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-03-26 21:46 +0000
1import subprocess 1abcdefg
2import sys 1abcdefg
5def test_not_python(): 1abcdefg
6 result = subprocess.run( 1abcdefg
7 [
8 sys.executable,
9 "-m",
10 "coverage",
11 "run",
12 "-m",
13 "typer",
14 "tests/assets/cli/not_python.txt",
15 "run",
16 ],
17 capture_output=True,
18 encoding="utf-8",
19 )
20 assert "Could not import as Python file" in result.stderr 1abcdefg