def test_model_is_compatible(metadata): # should not raise an exception assert Interpreter.ensure_model_compatibility(metadata) is None
def test_model_is_not_compatible(metadata): with pytest.raises(rasa.nlu.model.UnsupportedModelError): Interpreter.ensure_model_compatibility(metadata)