diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-24 21:15:22 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-24 21:15:22 +0100 |
commit | e5438c6440a2477c796427bc598b2b31b10dc762 (patch) | |
tree | d0a4388e15073a65feb41f497ff8b160c3f23f17 /tools/python_test.py | |
parent | c11bebd83dd0ef89645e1eefce2aa107dd79180a (diff) | |
download | gitlab-e5438c6440a2477c796427bc598b2b31b10dc762.tar.gz |
Implement project variables support
Diffstat (limited to 'tools/python_test.py')
-rw-r--r-- | tools/python_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/python_test.py b/tools/python_test.py index 820dca1..ff4aa2a 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -158,3 +158,12 @@ tr1 = admin_project.triggers.create({}) assert(len(admin_project.triggers.list()) == 1) tr1 = admin_project.triggers.get(tr1.token) tr1.delete() + +# variables +v1 = admin_project.variables.create({'key': 'key1', 'value': 'value1'}) +assert(len(admin_project.variables.list()) == 1) +v1.value = 'new_value1' +v1.save() +v1 = admin_project.variables.get(v1.key) +assert(v1.value == 'new_value1') +v1.delete() |