mirror of
https://github.com/cve-search/PyVulnerabilityLookup.git
synced 2024-11-29 10:17:23 +00:00
chg: keep path inget_last
This commit is contained in:
parent
499c8f6660
commit
6ace0ee43b
2 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ class PyVulnerabilityLookup():
|
|||
path /= source
|
||||
if number is not None:
|
||||
path /= str(number)
|
||||
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'last'))))
|
||||
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', path))))
|
||||
return r.json()
|
||||
|
||||
def get_vendors(self) -> list[str]:
|
||||
|
|
|
@ -298,7 +298,7 @@ class TestPublic(unittest.TestCase):
|
|||
if not instance_config.get('registration'):
|
||||
return None
|
||||
|
||||
user = self.client.create_user(name='test Name', login='alan',
|
||||
user = self.client.create_user(name='test Name', login='alan11111',
|
||||
organisation='test Organization', email='test@testorg.lu')
|
||||
self.assertTrue(user)
|
||||
self.assertTrue('id' in user, user)
|
||||
|
|
Loading…
Reference in a new issue