update examples to work with modified req client

examples now expect env variables
This commit is contained in:
2026-03-27 16:29:16 +00:00
parent 7126a2efe0
commit fe9f305afe
7 changed files with 62 additions and 33 deletions

View File

@@ -11,8 +11,8 @@ class TestErrors:
def test_it_raises_an_obssdk_error_on_incorrect_password(self):
bad_conn = {
"host": os.getenv("OBSWS_TEST_HOST", "localhost"),
"port": int(os.getenv("OBSWS_TEST_PORT", 4455)),
"host": os.getenv("OBSWS_HOST", "localhost"),
"port": int(os.getenv("OBSWS_PORT", 4455)),
"password": "incorrectpassword",
}
with pytest.raises(
@@ -23,8 +23,8 @@ class TestErrors:
def test_it_raises_an_obssdk_error_if_auth_enabled_but_no_password_provided(self):
bad_conn = {
"host": os.getenv("OBSWS_TEST_HOST", "localhost"),
"port": int(os.getenv("OBSWS_TEST_PORT", 4455)),
"host": os.getenv("OBSWS_HOST", "localhost"),
"port": int(os.getenv("OBSWS_PORT", 4455)),
"password": "",
}
with pytest.raises(