Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglongMa committed Feb 4, 2024
1 parent e4eac1d commit 0ff25a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TestUtils(unittest.TestCase):
def setUp(self):
self.image_path = "./mock_data/images"
self.image_path = str(Path("./mock_data/images").resolve())
# Sorted image paths
self.expected_recursive_image_paths = [
f"{self.image_path}/fake_img_1.gif", # In default, sorted by the trailing number
Expand Down Expand Up @@ -59,7 +59,7 @@ def test_single_directory_non_recursive(self):
self.should_exclude_folder(image_paths, ["subfolder", "debug", "log"])
self.assertListEqual(
image_paths,
[Path(p) for p in self.expected_non_recursive_image_paths],
[Path(p).resolve() for p in self.expected_non_recursive_image_paths],
)

def test_multiple_directories_recursive(self):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ commands =
python -m twine check dist/*
# flake8 .
# python -m unittest discover -v
cp -r tests/mock_data ./
cp -r tests/mock_data ./tests
python -m unittest discover -v tests
# py.test tests {posargs}

Expand Down

0 comments on commit 0ff25a8

Please sign in to comment.