Import tests: tests/test_config

Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
arsam
2026-09-18 23:06:43 +03:30
parent d71cea666a
commit 22c2649c79
+14
View File
@@ -0,0 +1,14 @@
def test_api_key_list_empty_when_unset():
from axon.config import Settings
s = Settings(api_keys=None)
assert s.api_key_list == []
def test_api_key_list_parses_csv():
from axon.config import Settings
s = Settings(api_keys="key1, key2 , key3")
assert s.api_key_list == ["key1", "key2", "key3"]
def test_api_key_list_single():
from axon.config import Settings
s = Settings(api_keys="only-key")
assert s.api_key_list == ["only-key"]