chg: fix a test

This commit is contained in:
Cédric Bonhomme 2024-11-25 11:12:21 +01:00
parent 04c176f6c8
commit 35d49cac1e
Signed by untrusted user who does not match committer: cedric
GPG key ID: A1CB94DE57B7A70D

View file

@ -293,7 +293,7 @@ class TestPublic(unittest.TestCase):
if not instance_config.get('registration'): if not instance_config.get('registration'):
return None 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') organisation='test Organization', email='test@testorg.lu')
self.assertTrue(user) self.assertTrue(user)
self.assertTrue('login' in user, user) self.assertTrue('login' in user, user)
@ -307,7 +307,7 @@ class TestPublic(unittest.TestCase):
created_comment = self.client.create_comment(comment=comment) created_comment = self.client.create_comment(comment=comment)
new_comment_uuid = created_comment['data'][0]['uuid'] new_comment_uuid = created_comment['data'][0]['uuid']
comments = self.client.get_comments(uuid=new_comment_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) deleted_comment = self.client.delete_comment(new_comment_uuid)
self.assertTrue(deleted_comment < 300) self.assertTrue(deleted_comment < 300)