Hey all. My team is trying to add unit tests to ou...
# ask-for-help
s
Hey all. My team is trying to add unit tests to our bentoml project and wondering if there are recommended practices around that. We'd like to take the model we pulled from MLFlow, hardcode some input, and assert the shape of the output of the model. I think we'd want to follow what is being done here but do it for a model being pulled from MLFlow. When I attempt to set up a test that pulls in a model (using
bentoml.mlflow.get(<my_model_name>)
) and use pytest, I get an error saying
bentoml.exceptions.NotFound: no Models with name '<my_model_name>' exist in BentoML store <osfs '/home/bentoml/models'>
. What's the proper way to pull in models from MLFlow for unit testing purposes here?