@@ -56,3 +56,33 @@ def test_should_load_and_unload_model(self, catalog):
5656 # Safety cleanup
5757 if model .is_loaded :
5858 model .unload ()
59+
60+ def test_should_expose_context_length (self , catalog ):
61+ """Model should expose context_length from ModelInfo metadata."""
62+ model = catalog .get_model (TEST_MODEL_ALIAS )
63+ assert model is not None
64+ # context_length should be None or a positive integer
65+ ctx = model .context_length
66+ assert ctx is None or (isinstance (ctx , int ) and ctx > 0 )
67+
68+ def test_should_expose_modalities (self , catalog ):
69+ """Model should expose input_modalities and output_modalities."""
70+ model = catalog .get_model (TEST_MODEL_ALIAS )
71+ assert model is not None
72+ # Modalities should be None or non-empty strings
73+ for val in (model .input_modalities , model .output_modalities ):
74+ assert val is None or (isinstance (val , str ) and len (val ) > 0 )
75+
76+ def test_should_expose_capabilities (self , catalog ):
77+ """Model should expose capabilities metadata."""
78+ model = catalog .get_model (TEST_MODEL_ALIAS )
79+ assert model is not None
80+ caps = model .capabilities
81+ assert caps is None or (isinstance (caps , str ) and len (caps ) > 0 )
82+
83+ def test_should_expose_supports_tool_calling (self , catalog ):
84+ """Model should expose supports_tool_calling metadata."""
85+ model = catalog .get_model (TEST_MODEL_ALIAS )
86+ assert model is not None
87+ stc = model .supports_tool_calling
88+ assert stc is None or isinstance (stc , bool )
0 commit comments