summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorCyril Jouve <jv.cyril@gmail.com>2019-10-06 16:19:28 +0200
committerCyril Jouve <jv.cyril@gmail.com>2019-10-06 16:39:33 +0200
commiteefceace2c2094ef41d3da2bf3c46a58a450dcba (patch)
treeb9cc5f5f320d764107e937aac86703a51cadb46d /tools/python_test_v4.py
parentf5b4a113a298d33cb72f80c94d85bdfec3c4e149 (diff)
downloadgitlab-eefceace2c2094ef41d3da2bf3c46a58a450dcba.tar.gz
feat(ci): improve functionnal tests
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index 9085f6f..bfae8c1 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -190,7 +190,9 @@ assert len(l) == 1
new_user.delete()
foobar_user.delete()
-assert len(gl.users.list()) == 3
+assert len(gl.users.list()) == 3 + len(
+ [u for u in gl.users.list() if u.username == "ghost"]
+)
# current user mail
mail = gl.user.emails.create({"email": "current@user.com"})
@@ -787,9 +789,10 @@ assert ns.kind == "user"
msg = gl.broadcastmessages.create({"message": "this is the message"})
msg.color = "#444444"
msg.save()
+msg_id = msg.id
msg = gl.broadcastmessages.list(all=True)[0]
assert msg.color == "#444444"
-msg = gl.broadcastmessages.get(1)
+msg = gl.broadcastmessages.get(msg_id)
assert msg.color == "#444444"
msg.delete()
assert len(gl.broadcastmessages.list()) == 0