From 40b9f4d62d5b9853bfd63317d8ad578b4525e665 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Tue, 29 May 2018 10:50:08 +0200 Subject: Add support for the gitlab CI lint API --- tools/python_test_v4.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/python_test_v4.py') 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)) -- cgit v1.2.1