MCPcopy Create free account
hub / github.com/Pometry/Raphtory / test_py_vis

Function test_py_vis

python/tests/test_export.py:125–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125def test_py_vis():
126 g = build_graph()
127 pyvis_g = g.to_pyvis(directed=True)
128
129 compare_list_of_dicts(
130 pyvis_g.nodes,
131 [
132 {
133 "color": "#97c2fc",
134 "id": "ServerA",
135 "label": "ServerA",
136 "shape": "dot",
137 },
138 {
139 "color": "#97c2fc",
140 "id": "ServerB",
141 "label": "ServerB",
142 "shape": "dot",
143 },
144 {
145 "color": "#97c2fc",
146 "id": "ServerC",
147 "label": "ServerC",
148 "shape": "dot",
149 },
150 {
151 "color": "#97c2fc",
152 "id": "ServerD",
153 "label": "ServerD",
154 "shape": "dot",
155 },
156 {
157 "color": "#97c2fc",
158 "id": "ServerE",
159 "label": "ServerE",
160 "shape": "dot",
161 },
162 ],
163 )
164
165 compare_list_of_dicts(
166 pyvis_g.edges,
167 [
168 {
169 "arrowStrikethrough": False,
170 "arrows": "to",
171 "color": "#000000",
172 "from": "ServerA",
173 "title": "Critical System Request",
174 "to": "ServerB",
175 },
176 {
177 "arrowStrikethrough": False,
178 "arrows": "to",
179 "color": "#000000",
180 "from": "ServerA",
181 "title": "File Transfer",
182 "to": "ServerC",

Callers

nothing calls this directly

Calls 3

compare_list_of_dictsFunction · 0.85
to_pyvisMethod · 0.80
build_graphFunction · 0.70

Tested by

no test coverage detected