fix: check title from new comment

This commit is contained in:
Raphaël Vinot 2024-12-09 14:59:19 +01:00
parent 869be1a700
commit 100bae2805
No known key found for this signature in database
GPG key ID: 32E4E1C133B3792F

View file

@ -325,8 +325,8 @@ class TestPublic(unittest.TestCase):
'related_vulnerabilities': ['CVE-2024-20402']}
created_comment = self.client.create_comment(comment=comment)
new_comment_uuid = created_comment['data'][0]['uuid']
comments = self.client.get_comment(new_comment_uuid)
self.assertTrue(len(comments['data']) == 1, comments)
comment = self.client.get_comment(new_comment_uuid)
self.assertEqual(comment['title'], 'test', comment)
deleted_comment = self.client.delete_comment(new_comment_uuid)
self.assertTrue(deleted_comment < 300)