From 100bae2805d47b2a1fc922fba6960ce8c01dbece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 9 Dec 2024 14:59:19 +0100 Subject: [PATCH] fix: check title from new comment --- 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 2753bc0..9c58fc2 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -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)