Skip to content

Commit

Permalink
try fix workflow unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Muddyblack committed Jan 12, 2024
1 parent 1c4c0fe commit 34f29ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run_unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ jobs:
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)" >> $GITHUB_ENV
- name: Run tests
# GOAL: python -m unittest discover -s . -p 'test*.py' -> Problem not fiinding setup file
run: |
python -m unittest discover unittests
python -m unittest discover -s file_manager/unittests
python -m unittest discover -s MetaDataEditor/unittests
2 changes: 1 addition & 1 deletion MetaDataEditor/unittests/test_image_metadata_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setUpClass(cls):
cls.file_format = "JPEG"

def setUp(self):
self.mock_open = patch("image_metadata_handler.Image.open").start()
self.mock_open = patch("PIL.Image.open").start()
self.mock_image = self.create_mock_image()
self.mock_open.return_value = self.mock_image

Expand Down
Empty file removed file_manager/unittests/__init__.py
Empty file.

0 comments on commit 34f29ea

Please sign in to comment.