Merge pull request #353 from jhj0517/fix/update-ci

Skip test if DeepL API is unavailable
This commit is contained in:
jhj0517
2024-10-25 16:34:00 +09:00
committed by GitHub

View File

@@ -28,6 +28,10 @@ def test_nllb_inference(
assert isinstance(file_paths[0], str)
@pytest.mark.skipif(
os.getenv("DEEPL_API_KEY") is None or not os.getenv("DEEPL_API_KEY"),
reason="DeepL API key is unavailable"
)
@pytest.mark.parametrize("file_path", [
TEST_SUBTITLE_SRT_PATH,
TEST_SUBTITLE_VTT_PATH,