feat: add AI model config template
This commit is contained in:
@@ -54,6 +54,15 @@ class TestOutfitConfigHelpers(unittest.TestCase):
|
||||
"".encode("utf-8") + json.dumps([{"name": "z"}]).encode("utf-8"))
|
||||
self.assertEqual(cs.load_ai_models()[0]["name"], "z")
|
||||
|
||||
def test_default_ai_models_template_is_loadable_and_has_no_keys(self):
|
||||
template = Path(__file__).parent.parent / "packaging" / "default_config" / "ai_models.json"
|
||||
shutil.copy2(str(template), str(self.config_dir / "ai_models.json"))
|
||||
|
||||
models = cs.load_ai_models()
|
||||
|
||||
self.assertEqual([m["name"] for m in models], ["GPT Image 2", "Nano Banana 2"])
|
||||
self.assertTrue(all(m.get("api_key") == "" for m in models))
|
||||
|
||||
# -- outfit_prompt.txt ----------------------------------------------
|
||||
|
||||
def test_prompt_default_when_missing(self):
|
||||
|
||||
Reference in New Issue
Block a user