Files
Axon/tests/test_config.py
arsam 22c2649c79 Import tests: tests/test_config
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
2026-09-18 23:06:43 +03:30

15 lines
468 B
Python

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"]