def test_undeploy_pipeline_docker(inference_pipeline: Pipeline, runtime: SeldonDockerRuntime): runtime.undeploy(inference_pipeline) for model in inference_pipeline.models.values(): with pytest.raises(docker.errors.NotFound): runtime._get_container(model.model_spec)
def test_undeploy_docker(sklearn_model: Model, runtime: SeldonDockerRuntime): time.sleep(2) runtime.undeploy(sklearn_model) with pytest.raises(docker.errors.NotFound): runtime._get_container(sklearn_model.model_spec)