From 7073d361d4021d9341ffdfbabc125032a83598d2 Mon Sep 17 00:00:00 2001 From: Marcos Martinez Date: Thu, 30 May 2024 16:16:03 +0100 Subject: [PATCH] :white_check_mark: Skip LM tests due to disk constrains Signed-off-by: Marcos Martinez --- zshot/tests/utils/test_description_enrichment.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zshot/tests/utils/test_description_enrichment.py b/zshot/tests/utils/test_description_enrichment.py index 2d5e168..42a366c 100644 --- a/zshot/tests/utils/test_description_enrichment.py +++ b/zshot/tests/utils/test_description_enrichment.py @@ -1,3 +1,4 @@ +import pytest import spacy from zshot import PipelineConfig @@ -7,6 +8,7 @@ FineTunedLMExtensionStrategy, SummarizationStrategy, ParaphrasingStrategy, EntropyHeuristic +@pytest.mark.skip(reason="Too expensive to run on every commit") def test_pretrained_lm_extension_strategy(): description = "The name of a company" strategy = PreTrainedLMExtensionStrategy() @@ -19,6 +21,7 @@ def test_pretrained_lm_extension_strategy(): assert len(desc_variations) == 3 and len(set(desc_variations + [description])) == 4 +@pytest.mark.skip(reason="Too expensive to run on every commit") def test_finetuned_lm_extension_strategy(): description = "The name of a company" strategy = FineTunedLMExtensionStrategy() @@ -31,6 +34,7 @@ def test_finetuned_lm_extension_strategy(): assert len(desc_variations) == 3 and len(set(desc_variations + [description])) == 4 +@pytest.mark.skip(reason="Too expensive to run on every commit") def test_summarization_strategy(): description = "The name of a company" strategy = SummarizationStrategy() @@ -43,6 +47,7 @@ def test_summarization_strategy(): assert len(desc_variations) == 3 and len(set(desc_variations + [description])) == 4 +@pytest.mark.skip(reason="Too expensive to run on every commit") def test_paraphrasing_strategy(): description = "The name of a company" strategy = ParaphrasingStrategy() @@ -55,6 +60,7 @@ def test_paraphrasing_strategy(): assert len(desc_variations) == 3 and len(set(desc_variations + [description])) == 4 +@pytest.mark.skip(reason="Too expensive to run on every commit") def test_entropy_heuristic(): def check_is_tuple(x): return isinstance(x, tuple) and len(x) == 2 and isinstance(x[0], str) and isinstance(x[1], float)