Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions tests/model_registry/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,12 @@ def model_registry_deployment_containers(model_registry_namespace: str) -> list[

@pytest.fixture(scope="class")
def model_registry_pod(admin_client: DynamicClient, model_registry_namespace: str) -> Pod:
mr_pod = list(
Pod.get(
dyn_client=admin_client,
namespace=model_registry_namespace,
label_selector=MODEL_REGISTRY_POD_FILTER,
)
)
assert len(mr_pod) == 1
return mr_pod[0]
return wait_for_pods_by_labels(
admin_client=admin_client,
namespace=model_registry_namespace,
label_selector=MODEL_REGISTRY_POD_FILTER,
expected_num_pods=1,
)[0]


@pytest.fixture(scope="class")
Expand Down