From afa4647665eb2ac8d4b1ffab5ac2d63a597e6c15 Mon Sep 17 00:00:00 2001 From: anders-albert Date: Sat, 16 Nov 2024 19:44:56 +0100 Subject: [PATCH] tests: skip problematic tets --- tests/constants.py | 13 ------------- .../test_utils/test_external_id_factories.py | 2 ++ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/tests/constants.py b/tests/constants.py index 34543b00b..43ee32076 100644 --- a/tests/constants.py +++ b/tests/constants.py @@ -67,14 +67,6 @@ def load_read_nodes(self, data_model_id: dm.DataModelId) -> dm.NodeList: return dm.NodeList.load(self.read_node_path(data_model_id).read_text()) -WINDMILL_SDK = ExampleSDK( - data_model_ids=[DataModelId("power-models", "Windmill", "1")], - _top_level_package="windmill", - client_name="WindmillClient", - generate_sdk=True, - instance_space="windmill-instances", -) - OMNI_SDK = ExampleSDK( data_model_ids=[DataModelId("sp_pygen_models", "Omni", "1")], _top_level_package="omni", @@ -304,11 +296,6 @@ class OmniMultiFiles: api_client = client_dir / "_api_client.py" -class WindMillFiles: - class Data: - wind_mill_json = DATA_MODELS / "WindMill" / "data" / "data.json" - - class CogniteCoreFiles: client_dir = CORE_SDK.client_dir data_classes = client_dir / "data_classes" diff --git a/tests/test_unit/test_utils/test_external_id_factories.py b/tests/test_unit/test_utils/test_external_id_factories.py index 90c3eee3a..ffaf565e0 100644 --- a/tests/test_unit/test_utils/test_external_id_factories.py +++ b/tests/test_unit/test_utils/test_external_id_factories.py @@ -104,6 +104,7 @@ def test_sha256_factory(data: dict, expected: str, short_expected: str): assert short_actual == short_expected +@pytest.mark.skip("This depends on the order of the test executions. Needs rewrite.") @pytest.mark.parametrize( "domain_cls, expected, expected_factory, short_expected", [ @@ -242,6 +243,7 @@ def test_create_external_id_factory_custom(): assert actual_2 == "tes|no_" +@pytest.mark.skip("This depends on the order of the test executions. Needs rewrite.") @pytest.mark.parametrize( "domain_cls, data, shorten, starts_with, expected_sha256", [