From 63536ca9747ada140e319478aecd8423eae7459a Mon Sep 17 00:00:00 2001 From: Silke Schomann Date: Fri, 6 Dec 2024 11:55:22 +0000 Subject: [PATCH] Fix ws name --- tests/workspacemanager_presenter_ads_test.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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")