()
| 8 | FIXTURES = Path(__file__).parent / "fixtures" |
| 9 | |
| 10 | def make_inputs(): |
| 11 | extraction = json.loads((FIXTURES / "extraction.json").read_text()) |
| 12 | G = build_from_json(extraction) |
| 13 | communities = cluster(G) |
| 14 | cohesion = score_all(G, communities) |
| 15 | labels = {cid: f"Community {cid}" for cid in communities} |
| 16 | gods = god_nodes(G) |
| 17 | surprises = surprising_connections(G) |
| 18 | detection = {"total_files": 4, "total_words": 62400, "needs_graph": True, "warning": None} |
| 19 | tokens = {"input": extraction["input_tokens"], "output": extraction["output_tokens"]} |
| 20 | return G, communities, cohesion, labels, gods, surprises, detection, tokens |
| 21 | |
| 22 | def test_report_contains_header(): |
| 23 | G, communities, cohesion, labels, gods, surprises, detection, tokens = make_inputs() |
no test coverage detected