From eefceace2c2094ef41d3da2bf3c46a58a450dcba Mon Sep 17 00:00:00 2001 From: Cyril Jouve Date: Sun, 6 Oct 2019 16:19:28 +0200 Subject: feat(ci): improve functionnal tests --- tools/python_test_v4.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/python_test_v4.py') 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 -- cgit v1.2.1