File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,14 @@ def test_merge_dicts_with_none() -> None:
45
45
46
46
def test_load_from_env () -> None :
47
47
"""Test loading configuration from environment variables."""
48
- # Set up test environment variables
49
48
test_env = {
50
49
"BOTKIT__TOKEN" : "test-token" ,
51
50
"BOTKIT__EXTENSIONS__PING__ENABLED" : "true" ,
52
51
"BOTKIT__EXTENSIONS__PING__COLOR" : "0xFF0000" ,
52
+ "BOTKIT__EXTENSIONS__PING__LOCALES" : '["en", "fr"]' ,
53
53
"BOTKIT__EXTENSIONS__TOPGG__TOKEN" : "test-topgg-token" ,
54
54
}
55
+ # Set up test environment variables
55
56
56
57
for key , value in test_env .items ():
57
58
os .environ [key ] = value
@@ -63,6 +64,7 @@ def test_load_from_env() -> None:
63
64
assert config ["token" ] == "test-token"
64
65
assert config ["extensions" ]["ping" ]["enabled" ] is True
65
66
assert config ["extensions" ]["ping" ]["color" ] == 0xFF0000
67
+ assert config ["extensions" ]["ping" ]["locales" ] == ["en" , "fr" ]
66
68
assert config ["extensions" ]["topgg" ]["token" ] == "test-topgg-token"
67
69
68
70
finally :
You can’t perform that action at this time.
0 commit comments