Commit Graph

47 Commits

Author SHA1 Message Date
Simon Conseil
14f6b93756 Ensure that locale is correctly reset if the test fails. 2016-01-31 00:50:44 +01:00
Simon Conseil
fce70828fc Reset logger level after the test 2016-01-31 00:06:27 +01:00
Simon Conseil
a93bdcc4c7 Test that exception is raised in debug mode. 2016-01-30 23:44:24 +01:00
Craig Gallek
589eec0d21 Implement album sorting
This adds an 'albums_sort_attr' configuration modeled off of the
'medias_sort_attr'.  It defaults to the existing behavior of sorting
sub-albums by directory name.  It allows sort by any metadata attribute
stored in the album metadata file.

The existing album sort test wasn't really verifying album sorting
behavior, so I just re-wrote the whole thing to include tests for the
old behavior and new.

This should resolve issue #121
2016-01-18 17:29:28 -05:00
Rémy HUBSCHER
f3300bfb52 Make sure GIF format is accepted in the library. 2016-01-08 11:35:23 +01:00
Antoine Pitrou
e5b7e53e51 Fix #118: allow passthrough of original files 2014-10-05 16:50:01 +02:00
t.animal
4beee5e06a read exif only on access, sort with progress bar 2014-09-08 20:41:45 +02:00
Simon Conseil
4c3a35c66f Change where the original copy is done and add a test for this. 2014-09-08 00:09:29 +02:00
Simon Conseil
71afbf5355 Adapt code to work with the latest changes on master. 2014-07-17 00:41:40 +02:00
Simon Conseil
d6a196bcdd Better handling of album urls (quoting special caracters). 2014-04-08 00:07:20 +02:00
Simon Conseil
e8f6ad5533 Fix filenames for videos (fix #83). 2014-03-29 23:45:06 +01:00
Simon Conseil
45f6bcd2a0 Refactor test fixtures. 2014-03-29 22:56:47 +01:00
Simon Conseil
7ddf297e25 New settings to filter directories and files with pattern matching (ref #63 #80). 2014-03-24 23:59:32 +01:00
Simon Conseil
fec2cd5d74 Fix locale. 2014-03-11 00:45:01 +01:00
Simon Conseil
befc3581c4 New settings to define the sort order for albums and medias (closes #2). 2014-03-10 23:47:36 +01:00
Simon Conseil
f23e87e39b Skip empty directories. 2014-03-08 23:36:12 +01:00
Simon Conseil
2c40ae805a Use the original file order to build the list of medias. 2014-03-08 00:06:16 +01:00
Simon Conseil
09ff3b9b53 Update tests + small fixes. 2014-03-07 23:29:07 +01:00
Simon Conseil
d5aa560932 New setting to copy files from the source directory to the destination (ref #48) 2014-01-15 23:58:13 +01:00
Simon Conseil
2637f0d09d Fix whitespace issues with videos (fix #54). 2013-12-27 23:25:30 +01:00
Simon Conseil
0baf632a01 Limit the nb of cpu for the tests 2013-12-18 00:56:13 +01:00
Simon Conseil
c0ce3d802a Some refactoring and optimizations for the PathsDb class. 2013-11-09 00:39:58 +01:00
Simon Conseil
440ef5f218 Add a setting to use symbolic links for original files (closes #36). 2013-10-17 00:17:06 +02:00
Simon Conseil
7916d5e4cc Refactor, tests and pep8 for the gallery module. 2013-10-14 00:39:41 +02:00
Matthias Vogelgesang
e98b76f401 Add test case for GPS tags
This also adds a sample image licensed under CC-BY-NC from jerquiaga located at
Flickr: http://www.flickr.com/photos/jerquiaga/2394751088/
2013-08-14 10:27:08 +02:00
Simon Conseil
93f5371209 oups, fix a broken test ... 2013-08-04 01:12:29 +02:00
Christophe-Marie Duquesne
d82f0aa007 merge img and vid into media and update themes 2013-07-21 14:42:28 +02:00
Christophe-Marie Duquesne
45020ef100 fix the thumbnail generation for videos, add test 2013-07-21 14:39:58 +02:00
Christophe-Marie Duquesne
0b5e38b17c Adding video support 2013-07-21 14:39:58 +02:00
Christophe-Marie Duquesne
3df7661b9d Adding utf8 named image 2013-07-10 13:40:58 +02:00
Christophe-Marie Duquesne
16ae45de17 Because everyone loves tests 2013-07-10 00:51:41 +02:00
Simon Conseil
8cbad2b3c4 Move sample pictures to a sub-directory 2013-05-07 00:30:07 +02:00
Simon
e33761ae15 Test the settings and gallery modules with pytest. 2013-03-12 21:56:58 +01:00
Simon
4720001d82 Bugfix for PNG files which don't have exif metadata (closes #11).
- add a test for the _getexif method
- add a png file in the sample directory
2013-03-12 18:30:44 +01:00
Simon
16ac982efe Bugfix for the removal of empty sub-directories. 2013-02-23 15:39:51 +01:00
Simon
e6c3de5999 Find the thumbnail in all the sub-directories. 2013-02-20 23:19:17 +01:00
Simon
2679abefed Fix an issue to find the thumbnail of a directory with only sub-categories, and
refactor.
2013-02-19 00:51:11 +01:00
Simon
5c2a7f9887 Add a sub-directory to the tests and refactor test_gallery. 2013-02-19 00:17:21 +01:00
Simon
025b868a91 Change "representative" to "thumbnail". 2013-02-18 00:33:47 +01:00
Simon
165ab19500 Move the paths dict to a dedicated class. 2013-02-16 17:51:51 +01:00
Simon
4ab124fceb Don't process directories that do not contain images. 2013-02-08 12:30:29 +01:00
Simon
7d3e7bb207 Move the configuration to a python file.
After a long hesitation ... but this will allow to use tuple, etc.
2012-12-15 00:13:08 +01:00
Simon
3c7d6449d2 Store the list of directories and loop on directories in reversed order, to
process subdirectories before their parent (fix #6).
2012-12-11 00:05:52 +01:00
Simon
ec2be44146 Add a test for the copy_exif function. 2012-11-27 23:31:12 +01:00
Simon
4ffe0701fa fix tests for python 2.6, importing unittest2 if necessary 2012-11-22 13:59:42 +01:00
Simon
6fcaa01e90 improve tests for gallery 2012-11-09 13:07:03 +01:00
Simon
1a85719e5c fix tests for gallery 2012-11-07 01:01:12 +01:00