File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import pytest
2
+ from decouple import config
2
3
3
4
from daras_ai .image_input import gcs_blob_for
4
5
from daras_ai_v2 import settings
@@ -74,6 +75,7 @@ def glossary_url():
74
75
GlossaryResource .objects .all ().delete ()
75
76
76
77
78
+ @pytest .mark .skipif (not config ("RUN_GOOGLE_TRANSLATE_TESTS" , None ))
77
79
@pytest .mark .skipif (not settings .GS_BUCKET_NAME , reason = "No GCS bucket" )
78
80
def test_google_translate_glossary (transactional_db , glossary_url , threadpool_subtest ):
79
81
for text , expected , expected_with_glossary in TRANSLATION_TESTS_GLOSSARY :
Original file line number Diff line number Diff line change
1
+ import pytest
2
+ from decouple import config
3
+
1
4
from conftest import flaky
2
5
from daras_ai_v2 .asr import run_google_translate
3
6
@@ -53,6 +56,7 @@ def test_google_translate(threadpool_subtest):
53
56
54
57
55
58
@flaky
59
+ @pytest .mark .skipif (not config ("RUN_GOOGLE_TRANSLATE_TESTS" , None ))
56
60
def google_translate_check (
57
61
text : str ,
58
62
expected : str ,
You can’t perform that action at this time.
0 commit comments