Skip to content

Commit bf563e4

Browse files
committed
add layout test
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent c4c509a commit bf563e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
5+
from power_grid_model_ds._core.visualizer.layout.cytoscape_html import get_cytoscape_html
6+
7+
8+
def test_get_cytoscape_html():
9+
elements = [{"data": {"id": "1", "group": "node"}}]
10+
cyto_html = get_cytoscape_html("preset", elements)
11+
assert cyto_html.children.elements == elements

0 commit comments

Comments
 (0)