Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
make_serving_endpointreference a valid model version (#106). Themake_serving_endpointfixture in theml.pyfile has been updated to reference a valid model version, as the previous approach of using a model version of'1'no longer worked due to an issue with themake_modelfixture. The updated fixture now falls back on a UC model version and allows users to provide input parameters to specify a different model or version. Optional parameters for the endpoint name, model name, and model version have been added, with default values set for each. Two new tests,test_make_serving_endpoint_no_args(),test_make_serving_endpoint_sets_default_model_version_to_one(), andtest_make_serving_endpoint_sets_model_version(), have been included, with acall_context_setupparameter to modify the behavior of the Model Registry API for unit testing. Theremovefunction has been updated to delete a specified endpoint, and acreatefunction has been added to handle the creation of a Databricks Serving Endpoint, including creating a model to serve on a small workload size. This update addresses issues related to the missing model version in themake_modelfixture and ensures that themake_serving_endpointfixture can handle different scenarios and inputs for selecting a model version, providing a more robust and flexible testing experience.