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