Skip to content

Commit dbd4b8f

Browse files
committed
✅ Add locales configuration to environment variable tests
1 parent 71f730d commit dbd4b8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/config_test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ def test_merge_dicts_with_none() -> None:
4545

4646
def test_load_from_env() -> None:
4747
"""Test loading configuration from environment variables."""
48-
# Set up test environment variables
4948
test_env = {
5049
"BOTKIT__TOKEN": "test-token",
5150
"BOTKIT__EXTENSIONS__PING__ENABLED": "true",
5251
"BOTKIT__EXTENSIONS__PING__COLOR": "0xFF0000",
52+
"BOTKIT__EXTENSIONS__PING__LOCALES": '["en", "fr"]',
5353
"BOTKIT__EXTENSIONS__TOPGG__TOKEN": "test-topgg-token",
5454
}
55+
# Set up test environment variables
5556

5657
for key, value in test_env.items():
5758
os.environ[key] = value
@@ -63,6 +64,7 @@ def test_load_from_env() -> None:
6364
assert config["token"] == "test-token"
6465
assert config["extensions"]["ping"]["enabled"] is True
6566
assert config["extensions"]["ping"]["color"] == 0xFF0000
67+
assert config["extensions"]["ping"]["locales"] == ["en", "fr"]
6668
assert config["extensions"]["topgg"]["token"] == "test-topgg-token"
6769

6870
finally:

0 commit comments

Comments
 (0)