(input_path: Path, output_path: Path, *extra: str)
| 31 | |
| 32 | |
| 33 | def run_extract_source(input_path: Path, output_path: Path, *extra: str) -> dict: |
| 34 | subprocess.run( |
| 35 | [ |
| 36 | sys.executable, |
| 37 | str(EXTRACT_SOURCE_SCRIPT), |
| 38 | "--input", |
| 39 | str(input_path), |
| 40 | "--output", |
| 41 | str(output_path), |
| 42 | *extra, |
| 43 | ], |
| 44 | check=True, |
| 45 | ) |
| 46 | return json.loads(output_path.read_text(encoding="utf-8")) |
| 47 | |
| 48 | |
| 49 | def test_extract_source_text_defaults_to_all_pages_and_jsonl(tmp_path: Path) -> None: |
no outgoing calls
no test coverage detected