Skip to content

Commit

Permalink
chg: updated tests/test_web.py in order to retrieve the API_TOKEN pro…
Browse files Browse the repository at this point in the history
…vided via environment variable (secrets.API_KEY on GitHub workflow).
  • Loading branch information
cedricbonhomme committed Jul 25, 2024
1 parent 016529d commit c01d1c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

import unittest
import time
import os

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

Expand Down

0 comments on commit c01d1c5

Please sign in to comment.