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:
@@ -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"]
|
||||
Reference in New Issue
Block a user