mirror of
https://github.com/cve-search/PyVulnerabilityLookup.git
synced 2024-11-26 00:37:22 +00:00
chg: fix a test
This commit is contained in:
parent
04c176f6c8
commit
35d49cac1e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue