mirror of
https://github.com/cve-search/PyVulnerabilityLookup.git
synced 2025-01-18 18:46:19 +00:00
fix: Test to get a comment by uuid
This commit is contained in:
parent
65244e3135
commit
869be1a700
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ class TestPublic(unittest.TestCase):
|
||||||
'related_vulnerabilities': ['CVE-2024-20402']}
|
'related_vulnerabilities': ['CVE-2024-20402']}
|
||||||
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_comment(new_comment_uuid)
|
||||||
self.assertTrue(len(comments['data']) == 1, 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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue