Skip to content

Commit

Permalink
Tests: Fix working directories
Browse files Browse the repository at this point in the history
Regressed by e0f6491.
  • Loading branch information
lah7 committed Jan 16, 2025
1 parent e0f6491 commit d20d39f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_dbpf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def _mktemp(self):
@classmethod
def setUpClass(cls):
"""Set up a test against package: The Sims 2 University (TSData/Res/UI/ui.package)"""
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
cls.package = dbpf.DBPF("tests/files/ui.package") # DBPF 1.1, Index 7.1

# Known compressed file (TGA Image)
Expand Down
1 change: 1 addition & 0 deletions tests/test_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def _get_test_file_data(self, filename):

@classmethod
def setUpClass(cls):
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
cls.ui_package = dbpf.DBPF(cls._get_test_file_path("ui.package"))
return super().setUpClass()

Expand Down

0 comments on commit d20d39f

Please sign in to comment.