MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_to_graphml_valid_xml

Function test_to_graphml_valid_xml

tests/test_export.py:233–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 assert out.exists()
232
233def test_to_graphml_valid_xml():
234 G = make_graph()
235 communities = cluster(G)
236 with tempfile.TemporaryDirectory() as tmp:
237 out = Path(tmp) / "graph.graphml"
238 to_graphml(G, communities, str(out))
239 content = out.read_text()
240 assert "<graphml" in content
241 assert "<node" in content
242
243def test_to_graphml_has_community_attribute():
244 G = make_graph()

Callers

nothing calls this directly

Calls 3

clusterFunction · 0.90
to_graphmlFunction · 0.90
make_graphFunction · 0.70

Tested by

no test coverage detected