Skip to content
Snippets Groups Projects
Commit 06b0ea4b authored by Matthew Andrew's avatar Matthew Andrew
Browse files

Updated muon_workspace_wrapper_test Re #23642

parent 4838a066
No related branches found
No related tags found
No related merge requests found
......@@ -195,24 +195,18 @@ class MuonWorkspaceTest(unittest.TestCase):
with self.assertRaises(ValueError):
workspace_handle.name = "new_name"
def test_that_hiding_workspace_more_than_once_has_no_effect_but_raises_RuntimeWarning(self):
def test_that_hiding_workspace_more_than_once_has_no_effect(self):
workspace_handle = MuonWorkspaceWrapper(workspace=self.workspace)
workspace_handle.show("name1")
workspace_handle.hide()
with self.assertRaises(RuntimeWarning):
workspace_handle.hide()
def test_that_if_workspace_deleted_from_ADS_then_hide_raises_a_RuntimeWarning(self):
def test_that_if_workspace_deleted_from_ADS_then_hide_does_nothing(self):
workspace_handle = MuonWorkspaceWrapper(workspace=self.workspace)
workspace_handle.show("name1")
simpleapi.mtd.clear()
with self.assertRaises(RuntimeWarning):
workspace_handle.hide()
def test_that_hiding_workspace_deletes_groups_which_are_left_empty(self):
# TODO
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment