Skip to content

Commit 6befcf1

Browse files
committed
fix: for non-kind cluster increase pagesize to consider all models with artifacts
Signed-off-by: Debarati Basu-Nag <dbasunag@redhat.com> AI-assisted: Claude Code (Opus 4.6)
1 parent 34dbd28 commit 6befcf1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

catalog/clients/python/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def api_client(user_token: str | None, verify_ssl: bool) -> Generator[CatalogAPI
237237

238238
@pytest.fixture(scope="session")
239239
def model_with_artifacts(
240-
request: pytest.FixtureRequest, api_client: CatalogAPIClient, verify_ssl: bool
240+
request: pytest.FixtureRequest, api_client: CatalogAPIClient, verify_ssl: bool, kind_cluster: bool
241241
) -> tuple[str, str]:
242242
"""Get a model that has artifacts for testing.
243243
@@ -254,7 +254,7 @@ def model_with_artifacts(
254254
if not verify_ssl:
255255
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
256256

257-
models = api_client.get_models()
257+
models = api_client.get_models(page_size=1000 if not kind_cluster else None)
258258
if not models.get("items"):
259259
pytest.fail("No models available - test data may not be loaded")
260260

0 commit comments

Comments
 (0)