Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip problematic tests on mac #215

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ __pycache__
.coverage.*
htmlcov
icloudpd-latest-py2.py3-none-any.whl
.venv
venv
6 changes: 6 additions & 0 deletions tests/test_download_photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ def test_download_and_skip_existing_photos(self):

@pytest.mark.skipif(sys.platform == 'win32',
reason="does not run on windows -- wrong dates")
@pytest.mark.skipif(sys.platform == 'darwin',
reason="does not run on macos -- wrong dates")
def test_download_photos_and_set_exif(self):
base_dir = os.path.normpath("tests/fixtures/Photos")
if os.path.exists(base_dir):
Expand Down Expand Up @@ -935,6 +937,8 @@ def astimezone(self, tz=None):

@pytest.mark.skipif(sys.platform == 'win32',
reason="does not run on windows")
@pytest.mark.skipif(sys.platform == 'darwin',
reason="does not run on mac")
def test_invalid_creation_year(self):
base_dir = os.path.normpath("tests/fixtures/Photos")
if os.path.exists(base_dir):
Expand Down Expand Up @@ -1160,6 +1164,8 @@ def mocked_download(self, size):

@pytest.mark.skipif(sys.platform == 'win32',
reason="does not run on windows -- wrong dates")
@pytest.mark.skipif(sys.platform == 'darwin',
reason="does not run on macos -- wrong dates")
def test_download_photos_and_set_exif_exceptions(self):
base_dir = os.path.normpath("tests/fixtures/Photos")
if os.path.exists(base_dir):
Expand Down
2 changes: 2 additions & 0 deletions tests/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class LoggerTestCase(TestCase):
# Tests the formatter that is set up in setup_logger()
@pytest.mark.skipif(sys.platform == 'win32',
reason="does not run on windows -- wrong dates")
@pytest.mark.skipif(sys.platform == 'darwin',
reason="does not run on macos -- wrong dates")
@freeze_time("2018-01-01 00:00")
def test_logger_output(self):
logger = setup_logger()
Expand Down