Skip to content

Commit

Permalink
Fix weak filepaths in test_pl_validation_translation
Browse files Browse the repository at this point in the history
  • Loading branch information
brunato committed Sep 21, 2023
1 parent 11f4b43 commit 05af170
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_translations.py
Expand Up @@ -12,6 +12,7 @@
import unittest
import gettext
import warnings
import pathlib

from xmlschema import XMLSchema, translation
from xmlschema.testing import SKIP_REMOTE_TESTS
Expand Down Expand Up @@ -111,8 +112,13 @@ def test_pl_translation(self):

@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"
test_dir_path = pathlib.Path(__file__).absolute().parent

xml_path = test_dir_path.joinpath(
"test_cases//translations//pl//tytul_wykonawczy_niekompletny.xml"
)
xsd_path = test_dir_path.joinpath("test_cases//translations//pl//tw-1(5)8e.xsd")

expected_errors = [
"Zawartość elementu 'com:Opisowy' nie jest kompletna. "
"Oczekiwany znacznik 'com:Miejscowosc'.",
Expand Down

0 comments on commit 05af170

Please sign in to comment.