From 948d223fa4b003e10d1e9cc1b682a8810b5888c5 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 28 Nov 2024 21:12:27 +0000 Subject: [PATCH] fix(tests): config.approved_domains returns empty list when not set --- tests/test_config_2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_config_2.py b/tests/test_config_2.py index 4e0c042..b4247d3 100644 --- a/tests/test_config_2.py +++ b/tests/test_config_2.py @@ -25,9 +25,9 @@ def test_config_no_admin_vars() -> None: # needs to be imported AFTER environment variables are set from app.utils.config import config # pragma: no cover - assert config.approved_domains is None - assert config.approved_rooms is None - assert config.approved_users is None + assert config.approved_domains == [] + assert config.approved_rooms == [] + assert config.approved_users == [] assert config.admin_emails == config_vars["ADMIN_EMAIL"].split(",") assert config.admin_first_name == config_vars["ADMIN_FIRST_NAME"] assert config.bot_name == config_vars["BOT_NAME"]