summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
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