diff options
| author | Roberto Bertó <463349+robertoberto@users.noreply.github.com> | 2025-09-18 13:08:55 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 13:08:55 -0300 |
| commit | 9a69a954a086df321640dfa65a2ac0ac35a15095 (patch) | |
| tree | 3c8e41a08dab6e47e4639e09eebcc37c4549b914 /tests/conftest.py | |
| parent | 85e4714c53b662c45a1f6ee4b6cb0089ad29cc7b (diff) | |
| parent | f25d28ab90a266c03fd966ddabc752088da080d6 (diff) | |
| download | pyvyos-9a69a954a086df321640dfa65a2ac0ac35a15095.tar.gz pyvyos-9a69a954a086df321640dfa65a2ac0ac35a15095.zip | |
Merge pull request #18 from eduardormorais/release/0.3.0
Updating version release 0.3.0
Diffstat (limited to 'tests/conftest.py')
| -rw-r--r-- | tests/conftest.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..5371206 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,22 @@ +import os + +import pytest + +from pyvyos import VyDevice + + +@pytest.fixture(scope="module") +def config_device(): + return { + "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, + } + + +@pytest.fixture(scope="module") +def test_device(config_device): + return VyDevice(**config_device) |
