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