From 0970da0ce7c92629c255be8db735903ae15e712b Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Fri, 25 Aug 2023 21:57:50 +0200 Subject: [PATCH] Skip a test case when no internet connection is available --- tests/test_translations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_translations.py b/tests/test_translations.py index 3730b79..ef1fab5 100644 --- a/tests/test_translations.py +++ b/tests/test_translations.py @@ -13,6 +13,7 @@ import gettext from xmlschema import XMLSchema, translation +from xmlschema.testing import SKIP_REMOTE_TESTS class TestTranslations(unittest.TestCase): @@ -107,6 +108,7 @@ def test_pl_translation(self): finally: translation._translation = None + @unittest.skipIf(SKIP_REMOTE_TESTS, "Remote networks are not accessible.") def test_pl_validation_translation(self): xml_path = "tests//test_cases//translations//pl//tytul_wykonawczy_niekompletny.xml" xsd_path = "tests//test_cases//translations//pl//tw-1(5)8e.xsd"