From 35d49cac1e2f103f3bf542d5c1df1248c95a2617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Mon, 25 Nov 2024 11:12:21 +0100 Subject: [PATCH] chg: fix a test --- tests/test_web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_web.py b/tests/test_web.py index 7d82294..10ae20c 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -293,7 +293,7 @@ class TestPublic(unittest.TestCase): if not instance_config.get('registration'): return None - user = self.client.create_user(name='test Name', login='test Login', + user = self.client.create_user(name='test Name', login='alan', organisation='test Organization', email='test@testorg.lu') self.assertTrue(user) self.assertTrue('login' in user, user) @@ -307,7 +307,7 @@ class TestPublic(unittest.TestCase): created_comment = self.client.create_comment(comment=comment) new_comment_uuid = created_comment['data'][0]['uuid'] comments = self.client.get_comments(uuid=new_comment_uuid) - self.assertTrue(len(comments['data']) == 0, comments) + self.assertTrue(len(comments['data']) == 1, comments) deleted_comment = self.client.delete_comment(new_comment_uuid) self.assertTrue(deleted_comment < 300)