Skip to content

Commit 93cdf48

Browse files
committed
Renumber test, record exceptions when adding child nodes
1 parent c923dac commit 93cdf48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/system/solvers/test_26_emit.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,7 @@ def test_all_members(node, results, results_of_get_props):
15811581

15821582
def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props, add_untested_children=True):
15831583
# Test every method on every node, but add node children to list while iterating
1584+
child_node_add_exceptions = {}
15841585
for node in nodes:
15851586
node_type = type(node).__name__
15861587
if node_type not in nodes_tested:
@@ -1606,6 +1607,9 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props
16061607
nodes.extend(node.children)
16071608
except Exception as e:
16081609
exception = e
1610+
1611+
if exception:
1612+
child_node_add_exceptions[node_type] = exception
16091613

16101614
test_all_members(node, results, results_of_get_props)
16111615

@@ -1669,7 +1673,7 @@ def test_nodes_from_top_level(nodes, nodes_tested, results, results_of_get_props
16691673

16701674
@pytest.mark.skipif(config["desktopVersion"] < "2025.1", reason="Skipped on versions earlier than 2024 R2.")
16711675
@pytest.mark.skipif(config["desktopVersion"] <= "2026.1", reason="Not stable test")
1672-
def test_26_components_catalog(self, add_app):
1676+
def test_27_components_catalog(self, add_app):
16731677
self.aedtapp = add_app(project_name="catalog-list", application=Emit)
16741678
comp_list = self.aedtapp.modeler.components.components_catalog["LTE"]
16751679
assert len(comp_list) == 14

0 commit comments

Comments
 (0)