def test_GIVEN_item_is_component_WHEN_expanding_transformation_list_THEN_transformation_list_is_expanded( component_tree_view, component_model): sample_component_index = get_sample_index(component_tree_view) expand_transformation_list(sample_component_index, component_tree_view, component_model) transformation_list_index = get_transformation_list_index( component_model, component_tree_view, sample_component_index) assert component_tree_view.isExpanded(transformation_list_index) assert component_tree_view.isExpanded(sample_component_index)
def _expand_transformation_list(self, node: QModelIndex): expand_transformation_list(node, self.component_tree_view, self.component_model)