Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 10, 2025
1 parent 765b66f commit 57bac8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,15 @@ def test_calcjob_node_link(self):
trunk.expand(recursive=True)
calcjob_node: CalcJobTreeNode = trunk.branches[0].branches[0]
calcjob_node.label.click()
assert self.panel.accordion.selected_index == 1
assert self.panel.process_tree.value == calcjob_node.uuid
assert self.panel.process_tree._tree.nodes == (calcjob_node.node,)
# TODO understand why the following does not trigger automatically as in the app
# TODO understand why the following triggers a thread
# self.panel.process_tree.set_trait("selected_nodes", [calcjob_node.node])
# assert isinstance(panel.node_view, CalcJobNodeViewerWidget)
# assert isinstance(self.panel.node_view, CalcJobNodeViewerWidget)
# assert self.panel.node_view_container.children[0] is self.node_view # type: ignore

def test_to_advanced_view_button(self):
assert self.panel.accordion.selected_index == 0
self.panel.to_advanced_view_button.click()
assert self.panel.accordion.selected_index == 1

0 comments on commit 57bac8c

Please sign in to comment.