File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
tests/model_registry/model_catalog Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 77from ocp_resources .resource import ResourceEditor
88
99from ocp_resources .route import Route
10- from tests .conftest import admin_client
1110from tests .model_registry .constants import DEFAULT_MODEL_CATALOG
1211from tests .model_registry .model_catalog .utils import is_model_catalog_ready , wait_for_model_catalog_api
1312from tests .model_registry .utils import wait_for_pods_running
@@ -26,11 +25,14 @@ def model_catalog_routes(admin_client: DynamicClient, model_registry_namespace:
2625
2726
2827@pytest .fixture (scope = "class" )
29- def model_catalog_rest_url (admin_client : DynamicClient , model_registry_namespace : str , model_catalog_routes : list [Route ]) -> list [str ]:
28+ def model_catalog_rest_url (
29+ admin_client : DynamicClient , model_registry_namespace : str , model_catalog_routes : list [Route ]
30+ ) -> list [str ]:
3031 assert model_catalog_routes , f"Model catalog routes does not exist in { model_registry_namespace } "
3132 # ensure that model catalog pod is up and running:
32- wait_for_pods_running (admin_client = admin_client , namespace_name = model_registry_namespace ,
33- number_of_consecutive_checks = 3 )
33+ wait_for_pods_running (
34+ admin_client = admin_client , namespace_name = model_registry_namespace , number_of_consecutive_checks = 3
35+ )
3436 route_urls = [
3537 f"https://{ route .instance .spec .host } :443/api/model_catalog/v1alpha1/" for route in model_catalog_routes
3638 ]
You can’t perform that action at this time.
0 commit comments