summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-29 10:50:08 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-29 10:50:08 +0200
commit40b9f4d62d5b9853bfd63317d8ad578b4525e665 (patch)
tree4e9143e7a6b0313ee799295e3b4815f265066bd6 /tools/python_test_v4.py
parent0cc9828fda25531a57010cb310f23d3c185e63a6 (diff)
downloadgitlab-40b9f4d62d5b9853bfd63317d8ad578b4525e665.tar.gz
Add support for the gitlab CI lint API
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index 47d9af2..558d7ab 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -64,6 +64,10 @@ assert(isinstance(gl.user, gitlab.v4.objects.CurrentUser))
# html = gl.markdown('foo')
# assert('foo' in html)
+success, errors = gl.lint('Invalid')
+assert(success is False)
+assert(errors)
+
# sidekiq
out = gl.sidekiq.queue_metrics()
assert(isinstance(out, dict))