diff --git a/.github/workflows/run_unittests.yml b/.github/workflows/run_unittests.yml index 27581a8..0631403 100644 --- a/.github/workflows/run_unittests.yml +++ b/.github/workflows/run_unittests.yml @@ -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 \ No newline at end of file + python -m unittest discover -s file_manager/unittests + python -m unittest discover -s MetaDataEditor/unittests \ No newline at end of file diff --git a/MetaDataEditor/unittests/test_image_metadata_handler.py b/MetaDataEditor/unittests/test_image_metadata_handler.py index 7e7e309..0d1792d 100644 --- a/MetaDataEditor/unittests/test_image_metadata_handler.py +++ b/MetaDataEditor/unittests/test_image_metadata_handler.py @@ -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 diff --git a/file_manager/unittests/__init__.py b/file_manager/unittests/__init__.py deleted file mode 100644 index e69de29..0000000