aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_exif.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply pyupgrade --py36-plus.Ben Sturmfels2021-09-231-1/+1
| | | | This removes some 'u' prefixes and converts simple format() calls to f-strings.
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-60/+60
|
* Add unit test for #5524Andrew Browning2017-09-201-1/+16
| | | | | | | | Add a unit test to verify that the change introduced in 07c535c no longer resulst in a zero divide error when gps data contains no divisor. This commit includes a test image created by Andrew Browning. Andrew Browning dedicates this image to the public domain under the CC0 license.
* Fix bugs with the exifread library updateJessica Tallon2015-10-071-2/+4
| | | | | | | | | | | - As of version 2.1.2 of exifread the 90 CW and 90 CCW values were swapped, this bug is now fixed however our test data had those values swapped too. I have fixed that. - I also noticed that I had different orientation values, this was noticed and fixed for some other differing values in commit ccca39f1 when it was decided we'll add values which were noticed on different platforms.
* A more reliable test, check against expected keys, rather than receivedChristopher Allan Webber2015-02-211-2/+2
| | | | | | | If we check against expected, if we got more than we expected, that's no problem :) This commit sponsored by Adan Bolte. Thank you!
* Stop looking for exact exif numbersChristopher Allan Webber2015-02-211-2/+2
| | | | | | As the exif library adds data, this keeps breaking, which is silly. Maybe using This commit sponsored by Mikaƫl Cluseau. Thank you!
* Fix another tests.Berker Peksag2014-08-071-3/+3
| | | | (forgot to commit earlier)
* Fix tests on Python 3.Berker Peksag2014-07-141-3/+9
|
* EXIF returns less data than it used to...Christopher Allan Webber2014-03-261-1/+1
|
* Fixed EXIF testsJoar Wandborg2013-05-201-57/+318
|
* Reverting "Always activate testing in every test module ever."Christopher Allan Webber2013-05-171-3/+0
| | | | | | Revert "Always activate testing in every test module ever." This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e.
* Always activate testing in every test module ever.Christopher Allan Webber2013-05-161-0/+3
| | | | Kind of a dorky way to implement this, but...
* PIL: Support systems with Pillow and withoutAlon Levy2013-04-171-1/+4
| | | | | | | Fixes for systems with Pillow, but leaves a "try: except ImportError" to support anything that doesn't have a PIL top level import. Signed-off-by: Alon Levy <alon@pobox.com>
* Refactor test resources into new resources.pyElrond2013-04-171-23/+1
|
* Update extlib/EXIFSebastian Spaeth2012-12-251-15/+4
| | | | | | | | | | | | Bump bundled EXIF lib to 1.0.10 as release in Sep 2012. Also skip unused detailed EXIF tags for reading, we might turn that on when we need them. Adapt test to wording change in EXIF Flas field and due to the fact that we use "details=False" by default now (we did not use these anyway) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Fix EXIF based image rotation testElrond2012-02-041-2/+13
| | | | | | | | The test checks for a pixel value after rotation (good idea!). But the value seems to be a bit different on some platforms, so use a list of seen values. Not the perfect solution, but it works.
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Acts on feedback from ChrisJoar Wandborg2012-01-251-0/+189
- Added EXIF tests - Removed pdb from image processing "ifmain" - Fixed comment typo in image processing - Removed unused import in tools.exif