From ef1c7f83b6b5092ac1d81e149e569d72536a0ea0 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Fri, 7 Nov 2025 23:56:15 +0100 Subject: [PATCH] added admin credential env vars for testing --- tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 80a1f4a..2eaf99d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -12,3 +12,9 @@ def pytest_configure(config: pytest.Config) -> None: tmpdir = tempfile.mkdtemp(prefix="baby_monitor_test_") os.environ["DATA_DIR"] = tmpdir os.environ["ENVIRONMENT"] = "development" + + # Set admin credentials for tests + if "ADMIN_USERNAME" not in os.environ: + os.environ["ADMIN_USERNAME"] = "admin" + if "ADMIN_PASSWORD" not in os.environ: + os.environ["ADMIN_PASSWORD"] = "password"