rename config module to envconfig

envconfig:
- add method for normalising the keys
- add has_key method
- update env var prefix to OBSWS_CLI_

update tests to reflect changes
This commit is contained in:
2026-01-25 16:19:12 +00:00
parent 1fc0bef237
commit 3a8d4ef0f0
4 changed files with 164 additions and 98 deletions

View File

@@ -21,9 +21,9 @@ def pytest_sessionstart(session):
"""
# Initialize the OBS WebSocket client
session.obsws = obsws.ReqClient(
host=os.environ['OBS_HOST'],
port=os.environ['OBS_PORT'],
password=os.environ['OBS_PASSWORD'],
host=os.environ['OBSWS_CLI_HOST'],
port=os.environ['OBSWS_CLI_PORT'],
password=os.environ['OBSWS_CLI_PASSWORD'],
timeout=5,
)
resp = session.obsws.get_version()