Skip to content

Commit f381daa

Browse files
authored
test: mark failing test with open bug (#1264)
Signed-off-by: fege <fmosca@redhat.com>
1 parent 764ad04 commit f381daa

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

tests/model_registry/model_catalog/huggingface/test_huggingface_model_sorting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class TestHuggingFaceModelsSorting:
2828
[
2929
("ID", "ASC"),
3030
("ID", "DESC"),
31-
("NAME", "ASC"),
32-
("NAME", "DESC"),
31+
pytest.param("NAME", "ASC", marks=pytest.mark.xfail(reason="RHOAIENG-54579")),
32+
pytest.param("NAME", "DESC", marks=pytest.mark.xfail(reason="RHOAIENG-54579")),
3333
("CREATE_TIME", "ASC"),
3434
("CREATE_TIME", "DESC"),
3535
("LAST_UPDATE_TIME", "ASC"),

tests/model_registry/model_catalog/sorting/test_model_artifacts_sorting.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ def test_artifacts_sorting_works_correctly(
9494
sort_order=sort_order,
9595
)
9696

97-
assert validate_items_sorted_correctly(response["items"], order_by, sort_order)
97+
# Exclude model-artifact items as they lack sortable fields like "name"
98+
items = [item for item in response["items"] if item.get("artifactType") != "model-artifact"]
99+
assert items, f"No sortable artifacts found for {model_name} (all items are model-artifact type)"
100+
assert validate_items_sorted_correctly(items, order_by, sort_order)
98101

99102

100103
@pytest.mark.downstream_only

tests/model_registry/model_catalog/sorting/test_model_sorting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class TestAccuracySorting:
3232
],
3333
)
3434
@pytest.mark.tier1
35+
@pytest.mark.xfail(reason="RHOAIENG-54579")
3536
def test_accuracy_sorting_works_correctly(
3637
self: Self,
3738
admin_client: DynamicClient,

0 commit comments

Comments
 (0)