def test_add_metadata_invalid_model_type(self, tmp_path):
        """Test that non-ONNX model types raise ValueError."""
        # Setup
        from test.unit_test.utils import get_pytorch_model

        input_model = get_pytorch_model()
        config = {"graph_name": "test_graph"}
        p = create_pass_from_dict(AddOliveMetadata, config, disable_search=True)
        output_folder = str(tmp_path / "onnx")

        # Execute and Assert
        with pytest.raises(ValueError, match="Model must be an instance of ONNXModelHandler"):
            p.run(input_model, output_folder)
Test that non-ONNX model types raise ValueError.
test/unit_test/passes/onnx/test_add_metadata.py