Commit Graph

407 Commits

Author SHA1 Message Date
Fabrice Laporte b01b611d26 fix pyflakes warnings reported in non-test files 2016-01-02 18:34:43 +01:00
Jaisen Mathai 64695fea08 Fix import to use proper package name 2016-01-01 23:52:11 -08:00
Jaisen Mathai 60c4acc1b3 gh-58 Fix all pep8 issues reported in non-test files 2016-01-01 23:25:59 -08:00
Jaisen Mathai 3501f2c954 gh-40 Add .pre-commit file which can be symlinked to .git/hooks/pre-commit to automatically run unit tests 2016-01-01 10:44:39 -08:00
Jaisen Mathai ed357c0e01 Merge pull request #55 from Kraymer/issue40_PR1
ref #40 Improve code quality
2016-01-01 10:31:08 -08:00
Fabrice Laporte 02bae17e95 fix PEP8 warnings 2015-12-31 00:29:13 +01:00
Fabrice Laporte 636b43fca4 move some code out of _update() 2015-12-30 23:52:01 +01:00
Fabrice Laporte 5452aa9adb cleanup complex if/else conditions 2015-12-30 01:41:51 +01:00
Fabrice Laporte 8a7725f68e pythonify elodie.py
Remove C like parentheses around conditions.
Replace “xxx is None” => “not x”.
Use tuple when list content won’t change.
Fix some others PEP8 warnings.
2015-12-30 01:41:51 +01:00
Fabrice Laporte 4ca2013572 refactor duplicated code
the import code was duplicated in if/else branches and has been moved
into a specific import_file() function
2015-12-30 01:41:51 +01:00
Fabrice Laporte 4676c154b6 remove unused imports 2015-12-30 01:20:02 +01:00
Fabrice Laporte 48a1f64687 document config.ini expected location 2015-12-29 14:13:47 +01:00
Jaisen Mathai 86efec0786 gh-52 Add cache lookup by name and include in ./elodie.py update command 2015-12-29 00:07:50 -08:00
Jaisen Mathai f8c4f35923 gh-47 Add tests for localstorage module including new geolocation database functions 2015-12-28 00:42:18 -08:00
Zingo Andersen 8b30107a3e Add geolocation cache for distances below 3km
By reusing lookup's the server need to be contacted a lot less
Aslo names get a bit clustered and match together a bit better.
2015-12-27 23:50:07 -08:00
zserg 0c3cfa8e47 @jmathai suggestion to improve the code readability 2015-12-27 23:40:20 -08:00
zserg 75e1f6180c fix problem with negative (South) Latitude 2015-12-27 23:40:20 -08:00
zserg d089b05cf0 tests added for inverted lattitude/logitude 2015-12-27 23:40:20 -08:00
Jaisen Mathai c9d7bc7102 Closes gh-50 Add unsigned option to `geolocation.decimal_to_dms` function and call with `False` from photo.py 2015-12-27 00:10:19 -08:00
Jaisen Mathai 229a23c471 Closes gh-42 Add Apache 2 License file 2015-12-23 22:59:47 -08:00
Jaisen Mathai 7a6931d34c Closes gh-38 Add import for constants module in photo.py 2015-12-20 00:31:03 -08:00
Aaron Barnes 083826b089 Add Debian/Ubuntu installation hint 2015-12-20 00:24:44 -08:00
Jaisen Mathai f1787d5a16 Closes gh-31 Fix decimal to degree, minute, second conversion by making seconds more precice and supporting negative values 2015-12-19 00:05:05 -08:00
Jaisen Mathai c4e817bde8 gh-31 Add test to check for conversion from decimal to degrees, minutes, seconds 2015-12-19 00:05:05 -08:00
Jaisen Mathai 853de0548a Add scrutinzer-ci badge 2015-12-18 23:04:04 -08:00
Jaisen Mathai d4dde66375 Closes gh-36 Fix bug with old references to `Media.photo_extensions` and `Media.video_extensions` 2015-12-18 20:08:12 -08:00
Jaisen Mathai 05659650df Merge pull request #34 from ibizaman/readme_clone_scheme
enhance README clone instruction
2015-12-18 19:13:35 -08:00
Pierre Penninckx 220f695041 enhance README clone instruction
It is much more convenient to give the https:// github scheme
since it is readable by anyone. It makes the readme more
copy/paste friendly. Using the git:// scheme is only possible
for the maintainer of the repository.
2015-12-19 02:39:13 +01:00
Jaisen Mathai 5818978736 Run `brew update` before installing dependencies. 2015-12-16 15:36:02 -08:00
Jaisen Mathai a7f17b8983 gh-32 Skip test while we figure out why it fails on TravisCi 2015-12-01 01:03:00 -08:00
Jaisen Mathai c14055698f gh-28 Add title back to test photos which were removed by Photoshop when modifying 2015-12-01 01:03:00 -08:00
Jaisen Mathai 339ea13692 gh-22 Add more verbosity in output for failed test in FileSystem module 2015-12-01 01:03:00 -08:00
Jaisen Mathai 232ebb10db Closes gh-30 Add unit tests for Video module 2015-12-01 01:03:00 -08:00
Jaisen Mathai fe160bb175 gh-28 Add no-exif file for tests and add test cases 2015-12-01 01:03:00 -08:00
Jaisen Mathai 752697fca8 gh-31 Skip test that fails due to loss of precision when converting from decimal to dms 2015-12-01 01:03:00 -08:00
Jaisen Mathai 3c4362e709 gh-22 Add __init__.py files so nosetests -w recursively runs tests 2015-12-01 01:03:00 -08:00
Jaisen Mathai 19f40c0b56 gh-29 Refactor Media module by moving methods to Photo module 2015-12-01 01:03:00 -08:00
Jaisen Mathai 300c9c794d gh-29 Add unit tests for Media module 2015-12-01 01:03:00 -08:00
Jaisen Mathai 56b9e7484d gh-28 Refactor Photo module to support unit tests 2015-12-01 01:03:00 -08:00
Jaisen Mathai 32360fa3fa gh-27 Add unit test for non-ascii title characters and mark as skipped 2015-12-01 01:03:00 -08:00
Jaisen Mathai 7375d392af gh-28 Add tests for Photo module 2015-12-01 01:03:00 -08:00
Jaisen Mathai 1713206368 gh-21 Refactor filesystem test by moving helper functions into a module 2015-12-01 01:03:00 -08:00
Jaisen Mathai 41c9446a9a gh-21 Add checksum assertions to ensure that FileSystem.file_process does not modify file 2015-12-01 01:03:00 -08:00
Jaisen Mathai 3a916aa589 Closes gh-21 Add all tests for FileSystem class and test photo files 2015-12-01 01:03:00 -08:00
Jaisen Mathai 1a9498a5d8 Rename root tests folder to tools to avoid confusion.
Real tests folder for python code is in elodie/tests.
2015-12-01 01:03:00 -08:00
Jaisen Mathai 56a085f75e gh-22 Add .travis.yml file 2015-12-01 01:03:00 -08:00
Jaisen Mathai 0a72ef481e gh-21 Initial unit tests for FileSystem.create_directory method 2015-12-01 01:03:00 -08:00
Jaisen Mathai 5b050fe485 Merge pull request #20 from jmathai/gh-16-preserve-folder-name
gh-16 Add --album-from-folder parameter to elodie.py and media.set_album_from_folder
2015-12-07 20:35:08 -08:00
Jaisen Mathai 47627df3ad Closes gh-4 Check for image type using imghdr module 2015-12-01 01:03:00 -08:00
Jaisen Mathai 3442f2cc46 gh-16 Add --album-from-folder parameter to elodie.py and media.set_album_from_folder method 2015-12-01 01:03:00 -08:00