summaryrefslogtreecommitdiff
path: root/ick2/workapi_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/workapi_tests.py')
-rw-r--r--ick2/workapi_tests.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/ick2/workapi_tests.py b/ick2/workapi_tests.py
index f657687..c855895 100644
--- a/ick2/workapi_tests.py
+++ b/ick2/workapi_tests.py
@@ -34,24 +34,23 @@ class WorkAPITests(unittest.TestCase):
shutil.rmtree(self.tempdir)
def create_project_api(self):
+ pipeline = {
+ 'name': 'build',
+ 'actions': [
+ {'shell': 'step-1'},
+ {'shell': 'step-2'},
+ ],
+ }
+
+ pipeapi = ick2.PipelineAPI(self.state)
+ pipeapi.create(pipeline)
+
project = {
'project': 'foo',
'parameters': {
'foo': 'bar',
},
- 'pipelines': [
- {
- 'name': 'build',
- 'actions': [
- {
- 'shell': 'step-1',
- },
- {
- 'shell': 'step-2',
- },
- ],
- },
- ],
+ 'pipelines': ['build'],
}
api = ick2.ProjectAPI(self.state)
api.create(project)