(repo: Path, *extra: str)
| 27 | |
| 28 | |
| 29 | def _run(repo: Path, *extra: str): |
| 30 | env = {k: v for k, v in os.environ.items() if k not in _KEY_VARS} |
| 31 | env["GRAPHIFY_OUT"] = str(repo / "graphify-out") |
| 32 | return subprocess.run( |
| 33 | [PYTHON, "-m", "graphify", "extract", ".", *extra], |
| 34 | cwd=repo, capture_output=True, text=True, env=env, |
| 35 | ) |
| 36 | |
| 37 | |
| 38 | def test_code_only_succeeds_without_key(tmp_path): |
no test coverage detected