MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / run_extract_source

Function run_extract_source

tests/test_extract_source_text.py:33–46  ·  view source on GitHub ↗
(input_path: Path, output_path: Path, *extra: str)

Source from the content-addressed store, hash-verified

31
32
33def 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
49def test_extract_source_text_defaults_to_all_pages_and_jsonl(tmp_path: Path) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected