Skip to content

Commit cf74704

Browse files
committed
Add basic test for get_app_layout
Signed-off-by: Thijs Baaijen <[email protected]>
1 parent a4e6585 commit cf74704

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
22
#
33
# SPDX-License-Identifier: MPL-2.0
4-
4+
from power_grid_model_ds._core.model.grids.base import Grid
5+
from power_grid_model_ds._core.data_source.generator.grid_generators import RadialGridGenerator
6+
from power_grid_model_ds._core.visualizer.app import get_app_layout
57
from power_grid_model_ds._core.visualizer.layout.cytoscape_html import get_cytoscape_html
68

79

810
def test_get_cytoscape_html():
911
elements = [{"data": {"id": "1", "group": "node"}}]
1012
cyto_html = get_cytoscape_html("preset", elements)
1113
assert cyto_html.children.elements == elements
14+
15+
def test_get_app_layout():
16+
grid = RadialGridGenerator(Grid).run()
17+
assert get_app_layout(grid)

0 commit comments

Comments
 (0)