Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
15 lines
468 B
Python
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"]
|