diff options
| author | eduardormorais <eduardoromorais@gmail.com> | 2025-09-16 13:55:02 -0300 |
|---|---|---|
| committer | eduardormorais <eduardoromorais@gmail.com> | 2025-09-16 13:55:02 -0300 |
| commit | a31d1f21d33ce348f89bc5b0bc05835529425480 (patch) | |
| tree | 1d975da3af8c9932b21d72b604f7f6103438c174 /tests/conftest.py | |
| parent | 8d6390980282c263c954d1fc766842e4398f7c74 (diff) | |
| download | pyvyos-a31d1f21d33ce348f89bc5b0bc05835529425480.tar.gz pyvyos-a31d1f21d33ce348f89bc5b0bc05835529425480.zip | |
Fix/979201165- Including default valu for environment variables in unit tests
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 9360264..5371206 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,11 +8,11 @@ from pyvyos import VyDevice @pytest.fixture(scope="module") def config_device(): return { - "hostname": os.getenv("VYDEVICE_HOSTNAME"), - "apikey": os.getenv("VYDEVICE_APIKEY"), - "port": os.getenv("VYDEVICE_PORT"), - "protocol": os.getenv("VYDEVICE_PROTOCOL"), - "verify": os.getenv("VYDEVICE_VERIFY_SSL"), + "hostname": os.getenv("VYDEVICE_HOSTNAME", "localhost"), + "apikey": os.getenv("VYDEVICE_APIKEY", "api_key"), + "port": os.getenv("VYDEVICE_PORT", 443), + "protocol": os.getenv("VYDEVICE_PROTOCOL", "https"), + "verify": os.getenv("VYDEVICE_VERIFY_SSL", False), "timeout": 0, } |
