The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(image_gen): state the creative-controls schema relationship as a subset check
kshitijk4poor04bcd6f322b0
diff --git a/tests/tools/test_image_generate_schema.py b/tests/tools/test_image_generate_schema.pyindex f3a81bcd154..f2698b26a1c 100644--- a/tests/tools/test_image_generate_schema.py+++ b/tests/tools/test_image_generate_schema.py@@ -127,11 +127,10 @@ class TestDynamicParamGating(unittest.TestCase):props = _build_dynamic_image_schema()["parameters"]["properties"]declared = KreaImageGenProvider().capabilities()["creative_controls"]self.assertTrue(declared)- self.assertEqual(set(declared) & set(props), set(declared))+ self.assertLessEqual(set(declared), set(props))for model in (self._t2i_only(), self._edit_multi_ref()):self.assertFalse(set(ig._CREATIVE_CONTROL_PARAMS) & set(self._schema_for(model)["parameters"]["properties"]))-def test_static_schema_carries_no_capability_args(self):"""The registration-time placeholder must stay minimal — dynamicoverrides own the capability args (do-not-re-add guard)."""diff --git a/tests/tools/test_image_generation_plugin_dispatch.py b/tests/tools/test_image_generation_plugin_dispatch.pyindex b213c7bcea3..5e30948eb77 100644--- a/tests/tools/test_image_generation_plugin_dispatch.py+++ b/tests/tools/test_image_generation_plugin_dispatch.py@@ -54,7 +54,6 @@ class TestPluginDispatch:assert seen["intensity"] == 80assert "creativity" not in seen-def test_deepinfra_key_alone_does_not_select_image_backend(self, monkeypatch):"""DeepInfra chat credentials do not imply consent to image billing."""from tools import image_generation_tool