diff --git a/tests/workspacemanager_presenter_ads_test.py b/tests/workspacemanager_presenter_ads_test.py index a7a9de01..376cc44d 100644 --- a/tests/workspacemanager_presenter_ads_test.py +++ b/tests/workspacemanager_presenter_ads_test.py @@ -31,8 +31,7 @@ def test_ensure_that_the_ads_observer_calls_clear_handle(self): presenter.delete_handle, presenter.clear_handle, presenter.rename_handle ) - workspace = CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True) - AnalysisDataService.addOrReplace("ws", workspace) + AnalysisDataService.addOrReplace("ws", CreateSampleWorkspace(OutputWorkspace="ws")) AnalysisDataService.clear(True) presenter.clear_handle.assert_called_once() @@ -45,8 +44,7 @@ def test_ensure_that_the_ads_observer_calls_delete_handle(self): presenter.delete_handle, presenter.clear_handle, presenter.rename_handle ) - workspace = CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True) - AnalysisDataService.addOrReplace("ws", workspace) + AnalysisDataService.addOrReplace("ws", CreateSampleWorkspace(OutputWorkspace="ws")) AnalysisDataService.remove("ws") presenter.delete_handle.assert_called_once_with("ws") @@ -59,8 +57,7 @@ def test_ensure_that_the_ads_observer_calls_rename_handle(self): presenter.delete_handle, presenter.clear_handle, presenter.rename_handle ) - workspace = CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True) - AnalysisDataService.addOrReplace("ws", workspace) + AnalysisDataService.addOrReplace("ws", CreateSampleWorkspace(OutputWorkspace="ws")) RenameWorkspace(InputWorkspace="ws", OutputWorkspace="ws1") presenter.rename_handle.assert_called_once_with("ws", "ws1")