From 22c2649c79602816ca81d49ef715779da73e55a9 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:06:43 +0330 Subject: [PATCH] Import tests: tests/test_config Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- tests/test_config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_config.py diff --git a/tests/test_config.py b/tests/test_config.py new file mode 100644 index 0000000..4d2be0a --- /dev/null +++ b/tests/test_config.py @@ -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"]