File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 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
57from power_grid_model_ds ._core .visualizer .layout .cytoscape_html import get_cytoscape_html
68
79
810def 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 )
You can’t perform that action at this time.
0 commit comments