Coverage for tests/test_cli/test_version.py: 100%
5 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
5def test_script_help(): 1abcdefgh
6 result = subprocess.run( 1abcdefgh
7 [sys.executable, "-m", "coverage", "run", "-m", "typer", "--version"],
8 capture_output=True,
9 encoding="utf-8",
10 )
11 assert "Typer version:" in result.stdout 1abcdefgh