Coverage for tests/test_select_gen.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-10-27 00:03 +0000

1import os 1abcdefghij

2import subprocess 1abcdefghij

3import sys 1abcdefghij

4from pathlib import Path 1abcdefghij

5 

6from .conftest import needs_py39 1abcdefghij

7 

8root_path = Path(__file__).parent.parent 1abcdefghij

9 

10 

11@needs_py39 1abcdefghij

12def test_select_gen() -> None: 1abcdefghij

13 env = os.environ.copy() 1klmnopqrs

14 env["CHECK_JINJA"] = "1" 1klmnopqrs

15 result = subprocess.run( 1klmnopqrs

16 [sys.executable, Path("scripts") / "generate_select.py"], 

17 env=env, 

18 check=True, 

19 cwd=root_path, 

20 capture_output=True, 

21 ) 

22 print(result.stdout) 1klmnopqrs