Skip to content

Commit

Permalink
Merge pull request #365 from stratakis/internet_tests
Browse files Browse the repository at this point in the history
Skip a test case when no internet connection is available
  • Loading branch information
brunato committed Aug 31, 2023
2 parents 6bf6d8e + 0970da0 commit 8cd4c97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import gettext

from xmlschema import XMLSchema, translation
from xmlschema.testing import SKIP_REMOTE_TESTS


class TestTranslations(unittest.TestCase):
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8cd4c97

Please sign in to comment.