MCPcopy Create free account
hub / github.com/tirth8205/code-review-graph / test_generate_html

Function test_generate_html

tests/test_visualization.py:131–142  ·  view source on GitHub ↗
(store_with_data, tmp_path)

Source from the content-addressed store, hash-verified

129
130
131def test_generate_html(store_with_data, tmp_path):
132 from code_review_graph.visualization import generate_html
133
134 output_path = tmp_path / "graph.html"
135 generate_html(store_with_data, output_path)
136 assert output_path.exists()
137 content = output_path.read_text()
138 assert "d3js.org" in content or "d3.v7" in content
139 assert "auth.py" in content
140 assert "AuthService" in content
141 assert "<!DOCTYPE html>" in content
142 assert "</html>" in content
143
144
145def test_cpp_include_resolution(tmp_path):

Callers

nothing calls this directly

Calls 1

generate_htmlFunction · 0.90

Tested by

no test coverage detected