chg: keep path inget_last

This commit is contained in:
Cédric Bonhomme 2024-11-25 11:58:06 +01:00
parent 499c8f6660
commit 6ace0ee43b
Signed by untrusted user who does not match committer: cedric
GPG key ID: A1CB94DE57B7A70D
2 changed files with 2 additions and 2 deletions

View file

@ -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]:

View file

@ -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)