Skip to content

Commit d9218ae

Browse files
committed
disable translation tests
1 parent f0321b2 commit d9218ae

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

glossary_resources/tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
from decouple import config
23

34
from daras_ai.image_input import gcs_blob_for
45
from daras_ai_v2 import settings
@@ -74,6 +75,7 @@ def glossary_url():
7475
GlossaryResource.objects.all().delete()
7576

7677

78+
@pytest.mark.skipif(not config("RUN_GOOGLE_TRANSLATE_TESTS", None))
7779
@pytest.mark.skipif(not settings.GS_BUCKET_NAME, reason="No GCS bucket")
7880
def test_google_translate_glossary(transactional_db, glossary_url, threadpool_subtest):
7981
for text, expected, expected_with_glossary in TRANSLATION_TESTS_GLOSSARY:

tests/test_translation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import pytest
2+
from decouple import config
3+
14
from conftest import flaky
25
from daras_ai_v2.asr import run_google_translate
36

@@ -53,6 +56,7 @@ def test_google_translate(threadpool_subtest):
5356

5457

5558
@flaky
59+
@pytest.mark.skipif(not config("RUN_GOOGLE_TRANSLATE_TESTS", None))
5660
def google_translate_check(
5761
text: str,
5862
expected: str,

0 commit comments

Comments
 (0)