Skip to content

Commit

Permalink
✅ Skip LM tests due to disk constrains
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Martinez <Marcos.Martinez.Galindo@ibm.com>
  • Loading branch information
marmg committed May 30, 2024
1 parent b878e95 commit 7073d36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zshot/tests/utils/test_description_enrichment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import pytest
import spacy

from zshot import PipelineConfig
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit 7073d36

Please sign in to comment.