File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 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:
4545
4646def 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 :
You can’t perform that action at this time.
0 commit comments