From 827c6ad27f5c97d54c205ec77e8ab0f8cbd79519 Mon Sep 17 00:00:00 2001 From: Lukas Plank Date: Mon, 20 Jan 2025 10:29:56 +0100 Subject: [PATCH] test: mark model sanity tests xfail Some model sanity checking was implemented in the old ModelBindingsMapper, all checking should be done in a dedicated model sanity checking pipeline, see issue #108. So these tests - for now - are xfails. --- tests/tests_mapper/test_sad_path_mapper_grouped_models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/tests_mapper/test_sad_path_mapper_grouped_models.py b/tests/tests_mapper/test_sad_path_mapper_grouped_models.py index 2a5beb5..8b18a63 100644 --- a/tests/tests_mapper/test_sad_path_mapper_grouped_models.py +++ b/tests/tests_mapper/test_sad_path_mapper_grouped_models.py @@ -1,5 +1,6 @@ -from pydantic import BaseModel import pytest + +from pydantic import BaseModel from rdfproxy import ConfigDict, ModelBindingsMapper from rdfproxy.utils._exceptions import ( InvalidGroupingKeyException, @@ -17,11 +18,13 @@ class ModelMissingGroupByValue(BaseModel): x: list[int] +@pytest.mark.xfail(reason="Not yet implemented, checks will run in model checkers.") def test_sad_path_adapter_missing_grouping_config(): with pytest.raises(MissingModelConfigException): ModelBindingsMapper(ModelMissingGroupByConfig, {"x": 1}).get_models() +@pytest.mark.xfail(reason="Not yet implemented, checks will run in model checkers.") def test_sad_path_adapter_missing_grouping_value(): with pytest.raises(InvalidGroupingKeyException): ModelBindingsMapper(ModelMissingGroupByValue, {"x": 1}).get_models()