Skip to content

Commit 419c722

Browse files
committed
Excluding nightly and missed precommit removal
1 parent 5822f04 commit 419c722

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

tests/python_tests/pytest.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
markers =
44
; The following markers are defined for categorizing tests:
55
; real_models - Tests that involve execution of the models from models/real_models file
6+
; nightly - Tests that should only run in nightly builds (uses large models or long running)
67
; samples - Tests related to the sample models.
78
; llm - Tests related to large language models.
89
; whisper - Tests related to the Whisper model.
@@ -12,6 +13,7 @@ markers =
1213
; rag - Tests related to the RAG components.
1314
; speech_generation - Tests related to text-to-speech generation
1415
real_models
16+
nightly
1517
samples
1618
llm
1719
whisper
@@ -22,4 +24,4 @@ markers =
2224
rag
2325
speech_generation
2426

25-
addopts = -m "not real_models"
27+
addopts = -m "not real_models and not nightly"

tests/python_tests/test_parsers.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def hf_ov_genai_models(request, tmp_path_factory):
2323
return hf_tokenizer, genai_tokenizer
2424

2525

26-
@pytest.mark.precommit
2726
@pytest.mark.parametrize(
2827
"hf_ov_genai_models",
2928
["katuni4ka/tiny-random-phi3"], # this tokenizer is used as a stub only
@@ -63,7 +62,6 @@ def write(self, message):
6362
assert msg['content'] == content
6463

6564

66-
@pytest.mark.precommit
6765
@pytest.mark.parametrize(
6866
"hf_ov_genai_models",
6967
["katuni4ka/tiny-random-phi3"], # this tokenizer is used as a stub only
@@ -92,7 +90,6 @@ def write(self, message):
9290
assert msg['content'] == content
9391

9492

95-
@pytest.mark.precommit
9693
@pytest.mark.parametrize(
9794
"hf_ov_genai_models",
9895
["katuni4ka/tiny-random-phi3"], # this tokenizer is used as a stub only
@@ -145,7 +142,6 @@ def write(self, message):
145142
assert msg['content'] == " The answer to 2 + 1 is 3."
146143

147144

148-
@pytest.mark.precommit
149145
@pytest.mark.parametrize(
150146
"hf_ov_genai_models",
151147
["katuni4ka/tiny-random-phi3"],
@@ -180,7 +176,6 @@ def write(self, message):
180176
assert msg['content'] == content
181177

182178

183-
@pytest.mark.precommit
184179
@pytest.mark.parametrize("answer", [
185180
"<think>\nOkay, the user is asking for the answer to 2 + 1.</think>\n\nThe answer to 2 + 1 is \boxed{3}.",
186181
])
@@ -203,7 +198,6 @@ def test_incremental_phi4_reason_parser_nostreamer(answer):
203198
assert msg['content'] == content
204199

205200

206-
@pytest.mark.precommit
207201
@pytest.mark.parametrize("keep_original_content", [True, False])
208202
@pytest.mark.parametrize("do_reset", [False])
209203
@pytest.mark.parametrize(
@@ -270,7 +264,6 @@ def test_incremental_deepseek_parser():
270264
assert msg['content'] == content
271265

272266

273-
@pytest.mark.precommit
274267
@pytest.mark.parametrize(
275268
"hf_ov_genai_models",
276269
["katuni4ka/tiny-random-phi3"],
@@ -313,7 +306,6 @@ def write(self, message):
313306
assert msg['main_text'] == " world "
314307

315308

316-
@pytest.mark.precommit
317309
@pytest.mark.parametrize(
318310
"hf_ov_genai_models",
319311
["katuni4ka/tiny-random-phi3"],

0 commit comments

Comments
 (0)