ordigi/elodie/tests
Jaisen Mathai 032e24b204 Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320)
Fixes #281 and #269

When elodie imports images, imghdr.what is used to determine the image
type. imghdr implementation won't support all JPEG variants. Because
of this, even for a valid JPEG file, imghdr.what returns None causing
elodie to skip the image during import.

This commit adds a fallback mechanism which uses PIL(pillow) library to
identify image formats. When imghdr fails, elodie uses pillow to
identify image format. When pillow is unavailable, it will be treated as
an invalid media file. Pillow is imported only when imghdr fails.
2019-07-10 04:05:32 -07:00
..
files Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320) 2019-07-10 04:05:32 -07:00
media Use PIL(pillow) as a fallback mechanism image format identification and add HEIC support (#320) 2019-07-10 04:05:32 -07:00
__init__.py gh-22 Add __init__.py files so nosetests -w recursively runs tests 2015-12-01 01:03:00 -08:00
config_test.py Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
constants_test.py Make MapQuest parameters configurable #258 (#308) 2019-04-01 00:56:37 -07:00
dependencies_test.py Added friendly errors when dependencies are not installed 2016-01-07 22:19:22 -08:00
elodie_test.py Include path separator and absolute path when checking if destination is a child of the source. Fixes gh-287 2018-12-03 22:32:35 -08:00
filesystem_test.py Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
geolocation_test.py Implements prefer english names setting for MapQuest API in config.ini (#290) 2019-01-21 20:27:38 -08:00
helper.py Fixes proper handling of location.json after failed test runs. #264 2018-02-09 00:01:10 -08:00
localstorage_test.py Closes gh-159 Remove RESULT as global variable in elodie.py 2016-12-15 01:24:04 -08:00
log_test.py Convert FileSystem.get_all_files to be a generator function 2016-12-19 21:59:58 -08:00
plugins_test.py Create an extendable plugin framework #315 #316 (#318) 2019-07-04 02:57:10 -07:00
requirements.txt gh-145 Fix configparser unit test error for python 2 and 3 2016-11-07 20:47:16 -08:00
result_test.py Closes gh-159 Remove RESULT as global variable in elodie.py 2016-12-15 01:24:04 -08:00