Skip to content

Commit

Permalink
Exclude Python-based nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
widerschein committed Apr 22, 2024
1 parent 212cdec commit 8b3d587
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/tcp/test_nodes_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ def test_all_nodes_creation(optislang: Optislang):
rs.delete_children_nodes()

for node_group in optislang.osl_server.get_available_nodes().values():
for node in node_group:
print(f"Creating node {node}")
node = rs.create_node(type_=node_types.get_node_type_from_str(node))
nodes_in_rs = rs.get_nodes()
assert node.uid == nodes_in_rs[0].uid
assert node.type == nodes_in_rs[0].type
node.delete()
if node_group == "builtin_nodes" or node_group == "integration_plugins":
for node in node_group:
print(f"Creating node {node}")
node = rs.create_node(type_=node_types.get_node_type_from_str(node))
nodes_in_rs = rs.get_nodes()
assert node.uid == nodes_in_rs[0].uid
assert node.type == nodes_in_rs[0].type
node.delete()


def test_create_node_in_system(optislang: Optislang):
Expand Down

0 comments on commit 8b3d587

Please sign in to comment.