summaryrefslogtreecommitdiff
path: root/ick2/workapi_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-29 18:45:21 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-29 20:19:07 +0100
commitc47428b05ffdcd9adc621f47d38fa88ee7c260c7 (patch)
tree348020df3668d3a78538d6afb0b4e8015646e569 /ick2/workapi_tests.py
parent22a1e56bd592bfb3a122c0c8bd45978791d4518b (diff)
downloadick2-c47428b05ffdcd9adc621f47d38fa88ee7c260c7.tar.gz
Add: set fresh_workspace in work responses
Diffstat (limited to 'ick2/workapi_tests.py')
-rw-r--r--ick2/workapi_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ick2/workapi_tests.py b/ick2/workapi_tests.py
index c855895..d7ebfa9 100644
--- a/ick2/workapi_tests.py
+++ b/ick2/workapi_tests.py
@@ -86,6 +86,7 @@ class WorkAPITests(unittest.TestCase):
'parameters': {
'foo': 'bar',
},
+ 'fresh_workspace': True,
'step': {
'shell': 'step-1',
},
@@ -112,6 +113,7 @@ class WorkAPITests(unittest.TestCase):
'parameters': {
'foo': 'bar',
},
+ 'fresh_workspace': True,
'step': {
'shell': 'step-1',
},
@@ -144,6 +146,7 @@ class WorkAPITests(unittest.TestCase):
# We should get the next step now.
expected['step'] = {'shell': 'step-2'}
expected['step_index'] = 1
+ expected['fresh_workspace'] = False
self.assertEqual(work.get_work('asterix'), expected)
# Finish the step.
@@ -173,6 +176,7 @@ class WorkAPITests(unittest.TestCase):
'parameters': {
'foo': 'bar',
},
+ 'fresh_workspace': True,
'step': {
'shell': 'step-1',
},