summaryrefslogtreecommitdiff
path: root/ick2/projectapi_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-26 14:02:12 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-26 14:02:12 +0100
commit3e0be8437d6794e5e73f4db8e87aa6ee81278ee3 (patch)
treec48687dff995b09ae7920bb5d642577ecbeb81ab /ick2/projectapi_tests.py
parent553c10959228f416b2329bfcd2d13775210ac75d (diff)
downloadick2-3e0be8437d6794e5e73f4db8e87aa6ee81278ee3.tar.gz
Add: unit test adds project parameters
Diffstat (limited to 'ick2/projectapi_tests.py')
-rw-r--r--ick2/projectapi_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ick2/projectapi_tests.py b/ick2/projectapi_tests.py
index 975018c..ae5190e 100644
--- a/ick2/projectapi_tests.py
+++ b/ick2/projectapi_tests.py
@@ -53,11 +53,15 @@ class ProjectAPITests(unittest.TestCase):
],
},
],
+ 'parameters': {
+ 'foo': 'bar',
+ }
}
api = self.create_api()
self.assertEqual(api.create(project), project)
self.assertEqual(api.list(), {'projects': [project]})
self.assertEqual(api.get_pipeline('foo', 'build'), {'status': 'idle'})
+ self.assertEqual(api.get_pipeline('foo', 'build'), {'status': 'idle'})
def test_raises_error_when_getting_missing_pipeline(self):
project = {