Skip to content

Commit

Permalink
Fix ws name
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkeSchomann committed Dec 6, 2024
1 parent 97012f9 commit 63536ca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/workspacemanager_presenter_ads_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 63536ca

Please sign in to comment.