Skip to content

Commit

Permalink
tests: fix deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 31, 2024
1 parent 6e31f41 commit 3634b70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/deprecated/g_legacy_csv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import unittest
from os.path import abspath, dirname

rootDir = dirname(dirname(abspath(__file__)))
rootDir = dirname(dirname(dirname(abspath(__file__))))
sys.path.insert(0, rootDir)

from glossary_v2_test import TestGlossaryBase
from glossary_test import TestGlossaryBase

from pyglossary.glossary import Glossary as GlossaryLegacy

Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated/glossary_errors_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import unittest
from os.path import abspath, dirname, isfile, join, relpath

rootDir = dirname(dirname(abspath(__file__)))
rootDir = dirname(dirname(dirname(abspath(__file__))))
sys.path.insert(0, rootDir)

from glossary_test import TestGlossaryBase, appTmpDir
Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated/glossary_security_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import unittest
from os.path import abspath, dirname

rootDir = dirname(dirname(abspath(__file__)))
rootDir = dirname(dirname(dirname(abspath(__file__))))
sys.path.insert(0, rootDir)

from glossary_errors_test import TestGlossaryErrors
Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated/glossary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from os.path import abspath, dirname, isdir, isfile, join
from urllib.request import urlopen

rootDir = dirname(dirname(abspath(__file__)))
rootDir = dirname(dirname(dirname(abspath(__file__))))
sys.path.insert(0, rootDir)

from typing import TYPE_CHECKING
Expand Down

0 comments on commit 3634b70

Please sign in to comment.