From ad19358b5e058bd499e919093ece4ee9f590dbe7 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Sat, 9 Mar 2024 11:22:18 +1300 Subject: [PATCH] tests: change test env vars before documenting them in the wiki It should be clear these are for testing so put `TEST_` in their name. The name names are: * SAMBAL_TEST_HOST * SAMBAL_TEST_USERNAME * SAMBAL_TEST_PASSWORD * SAMBAL_TEST_REALM There is no need to change the settings keys, just the env vars is enough. --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 93c8113..9acefe7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -11,10 +11,10 @@ def settings(): """Fixture that returns the Pyramid settings dict.""" test_settings = dict(sambal.SETTINGS) - test_settings["samba.host"] = os.getenv("SAMBAL_SAMBA_HOST") - test_settings["samba.username"] = os.getenv("SAMBAL_SAMBA_USERNAME") - test_settings["samba.password"] = os.getenv("SAMBAL_SAMBA_PASSWORD") - test_settings["samba.realm"] = os.getenv("SAMBAL_SAMBA_REALM") + test_settings["samba.host"] = os.getenv("SAMBAL_TEST_HOST") + test_settings["samba.username"] = os.getenv("SAMBAL_TEST_USERNAME") + test_settings["samba.password"] = os.getenv("SAMBAL_TEST_PASSWORD") + test_settings["samba.realm"] = os.getenv("SAMBAL_TEST_REALM") test_settings["http_host"] = "example.com" return test_settings