From b15f17b6d2008ee658cf9206aa37faaf966a521b Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 23 Oct 2016 21:46:28 +0200 Subject: Add support for the notification settings API --- tools/python_test.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/python_test.py') diff --git a/tools/python_test.py b/tools/python_test.py index 27ec4bd..0c065b8 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -282,3 +282,10 @@ msg = gl.broadcastmessages.get(1) assert(msg.color == '#444444') msg.delete() assert(len(gl.broadcastmessages.list()) == 0) + +# notification settings +settings = gl.notificationsettings.get() +settings.level = gitlab.NOTIFICATION_LEVEL_WATCH +settings.save() +settings = gl.notificationsettings.get() +assert(settings.level == gitlab.NOTIFICATION_LEVEL_WATCH) -- cgit v1.2.1