Coverage for tests/test_cli/test_func_other_name.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-14 00:18 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-14 00:18 +0000
1import subprocess 1abcdefghi
2import sys 1abcdefghi
5def test_script(): 1abcdefghi
6 result = subprocess.run( 1abcdefghi
7 [
8 sys.executable,
9 "-m",
10 "coverage",
11 "run",
12 "-m",
13 "typer",
14 "tests/assets/cli/func_other_name.py",
15 "run",
16 "--name",
17 "Camila",
18 ],
19 capture_output=True,
20 encoding="utf-8",
21 )
22 assert "Hello Camila" in result.stdout 1abcdefghi