Browse Source

Skip test failing with older Pillow

exif-rotate
Simon Conseil 5 years ago committed by Simon Conseil
parent
commit
cb320b4c5a
  1. 1
      tests/sample/sigal.conf.py
  2. 5
      tests/test_image.py
  3. 10
      tox.ini

1
tests/sample/sigal.conf.py

@ -5,7 +5,6 @@ thumb_suffix = ".tn"
keep_orig = True keep_orig = True
thumb_video_delay = 5 thumb_video_delay = 5
# img_format = 'jpeg' # img_format = 'jpeg'
copy_exif_data = True
links = [ links = [
("Example link", "http://example.org"), ("Example link", "http://example.org"),

5
tests/test_image.py

@ -1,7 +1,9 @@
import os import os
from unittest.mock import patch from unittest.mock import patch
import PIL
import pytest import pytest
from packaging.version import Version
from PIL import Image as PILImage from PIL import Image as PILImage
from sigal import init_logging from sigal import init_logging
@ -280,6 +282,9 @@ def test_exif_copy(tmpdir):
assert not simple assert not simple
@pytest.mark.skipif(
Version(PIL.__version__) < Version('8.0'), reason='fails with Pillow < 8.0'
)
def test_exif_gps(tmpdir): def test_exif_gps(tmpdir):
"""Test reading out correct geo tags""" """Test reading out correct geo tags"""

10
tox.ini

@ -1,19 +1,19 @@
[tox] [tox]
envlist = py{37,38,39}-pillow{71,-latest},pypy3,check envlist = py{37,38,39}-pillow{72,80,-latest},pypy3,check
skip_missing_interpreters = true skip_missing_interpreters = true
isolated_build = true isolated_build = true
[gh-actions] [gh-actions]
python = python =
3.7: py37-pillow71 3.7: py37-pillow72
3.8: py38-pillow-latest, check 3.8: py38-pillow80, check
3.9: py39-pillow-latest 3.9: py39-pillow-latest
pypy3: pypy3 pypy3: pypy3
[testenv] [testenv]
deps = deps =
pillow70: Pillow==7.0.0 pillow80: Pillow==8.0.1
pillow71: Pillow==7.1.0 pillow72: Pillow==7.2.0
extras = extras =
all all
tests tests

Loading…
Cancel
Save