Skip to content

Commit 7c466a7

Browse files
authored
chore: skip nvidia datastore tests when nvidia datastore is not enabled (ogx-ai#3590)
# What does this PR do? the nvidia datastore tests were running when the datastore was not configured. they would always fail. this introduces a skip when the nvidia datastore is not configured. ## Test Plan ci
1 parent 90bb9cf commit 7c466a7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/integration/providers/nvidia/test_datastore.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
# LLAMA_STACK_CONFIG="nvidia" pytest -v tests/integration/providers/nvidia/test_datastore.py
1515

1616

17+
@pytest.fixture(autouse=True)
18+
def skip_if_no_nvidia_provider(llama_stack_client):
19+
provider_types = {p.provider_type for p in llama_stack_client.providers.list() if p.api == "datasetio"}
20+
if "remote::nvidia" not in provider_types:
21+
pytest.skip("datasetio=remote::nvidia provider not configured, skipping")
22+
23+
1724
# nvidia provider only
1825
@skip_in_github_actions
1926
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)