mirror of
https://github.com/cve-search/PyVulnerabilityLookup.git
synced 2024-11-25 16:27:23 +00:00
chg: updated tests/test_web.py in order to retrieve the API_TOKEN provided via environment variable (secrets.API_KEY on GitHub workflow).
This commit is contained in:
parent
016529d2fb
commit
c01d1c5460
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
import unittest
|
||||
import time
|
||||
import os
|
||||
|
||||
from pyvulnerabilitylookup import PyVulnerabilityLookup
|
||||
|
||||
|
@ -9,7 +10,8 @@ from pyvulnerabilitylookup import PyVulnerabilityLookup
|
|||
class TestPublic(unittest.TestCase):
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.client = PyVulnerabilityLookup(root_url="https://vulnerability.circl.lu")
|
||||
token = os.getenv("API_KEY", "")
|
||||
self.client = PyVulnerabilityLookup(root_url="https://vulnerability.circl.lu", token=token)
|
||||
|
||||
# Test default
|
||||
|
||||
|
|
Loading…
Reference in a new issue