Skip to content

Commit

Permalink
Add ws explicitly to ADS
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkeSchomann committed Dec 6, 2024
1 parent fd918ca commit 97012f9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/workspacemanager_presenter_ads_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def test_ensure_that_the_ads_observer_calls_clear_handle(self):
presenter.delete_handle, presenter.clear_handle, presenter.rename_handle
)

CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True)
workspace = CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True)
AnalysisDataService.addOrReplace("ws", workspace)
AnalysisDataService.clear(True)

presenter.clear_handle.assert_called_once()
Expand All @@ -44,8 +45,8 @@ def test_ensure_that_the_ads_observer_calls_delete_handle(self):
presenter.delete_handle, presenter.clear_handle, presenter.rename_handle
)

CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True)
print(AnalysisDataService.getObjectNames())
workspace = CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True)
AnalysisDataService.addOrReplace("ws", workspace)
AnalysisDataService.remove("ws")

presenter.delete_handle.assert_called_once_with("ws")
Expand All @@ -58,7 +59,8 @@ def test_ensure_that_the_ads_observer_calls_rename_handle(self):
presenter.delete_handle, presenter.clear_handle, presenter.rename_handle
)

CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True)
workspace = CreateSampleWorkspace(OutputWorkspace="ws", StoreInADS=True)
AnalysisDataService.addOrReplace("ws", workspace)
RenameWorkspace(InputWorkspace="ws", OutputWorkspace="ws1")

presenter.rename_handle.assert_called_once_with("ws", "ws1")
Expand Down

0 comments on commit 97012f9

Please sign in to comment.