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