Commit Graph

139 Commits

Author SHA1 Message Date
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
dba2aec8ec Use pytest.mark.parametrize r=@saimn 2016-01-08 12:23:23 +01:00
Rémy HUBSCHER
c196fc64a5 Validate GIF always use_orig and generate thumbnail. 2016-01-08 11:46:51 +01:00
Rémy HUBSCHER
f3300bfb52 Make sure GIF format is accepted in the library. 2016-01-08 11:35:23 +01:00
Rémy HUBSCHER
cb17a03316 Make sure gif files are zipped correctly. 2016-01-08 11:19:41 +01:00
Simon Conseil
f819f883d4 Fix test with fraction exposure 2016-01-08 00:13:07 +01:00
Simon Conseil
0622f2666c xfail GPS test only for Pillow 3.0.0 2016-01-08 00:12:33 +01:00
Simon Conseil
c044d276b3 Show Pillow version in the tests header 2016-01-08 00:11:17 +01:00
Simon Conseil
a9ca86fe6f More fixes. 2015-10-14 23:16:09 +02:00
Simon Conseil
ccea99ed36 Enhance detection of a theme directory. 2015-09-01 23:25:56 +02:00
Simon Conseil
9f0cf68b7b Fix tests - forgot to revert the config file. 2015-09-01 23:09:01 +02:00
Simon Conseil
df00f85a88 Fix syntax error + avoid implicit global variables. 2015-09-01 16:06:16 +02:00
Simon Conseil
2d27aabca9 Add more tests for the video processing functions. 2015-08-31 00:26:20 +02:00
Simon Conseil
24763d46fc Cleanup. 2015-08-07 00:35:07 +02:00
Simon Conseil
e8e6598b6d Strip spaces for some exif tags (fix #154). 2015-07-18 00:43:25 +02:00
Simon Conseil
b4ad227eb7 Make sure that bad exif data does not crash sigal. 2015-07-17 00:48:51 +02:00
Simon Conseil
df2652d0e7 Merge branch 'pr/164' 2015-06-22 23:53:39 +02:00
franek
78b23090fe add test on get_size method when missing image 2015-06-15 11:10:50 +02:00
franek
a7e9c17489 Refactor get_size method and add 2 properties to Image (size and thumb_size).
Add tests for get_size method
2015-06-14 12:54:19 +02:00
Simon Conseil
b3ef364d79 Pass mp4_options to the tests using generate_video.
Otherwise ffmpeg might fail if it doesn't get the -strict -2 option for the aac
encoder.
2015-06-14 00:38:45 +02:00
Miroslav Pavleski
3a614759cb Added the video_format and mp4_settings settings in the settings template (sigal/templates/sigal.conf.py), added myself to the AUTHORS file. Parametrized the tests/test_video.py tests to run both for webm & mp4. 2015-05-26 23:05:40 +02:00
Simon Conseil
1a783ddec9 Small cleanup. 2015-04-28 00:18:29 +02:00
Juan A. Suarez Romero
ca61eed13d Fix video tests 2015-04-27 16:41:13 +02:00
Juan A. Suarez Romero
fb9eb3552d Honor 'use_orig' for videos
When 'use_orig' is True, copy the original video files (or symlink them,
depending if 'orig_link' is True) to the destination, and use them as they are,
without processing.

This setting is ignored for all files not supported in HTML5; those are
converted anyway, because otherwise we could not reproduce them.
2015-04-27 15:41:19 +02:00
Simon Conseil
94c98588b8 Don't share the settings fixture between tests. 2015-04-20 00:10:30 +02:00
Abdul Qabiz
cf9866f9c1 Add watermark plugin 2015-03-06 19:25:26 +05:30
jdn06
99dc1a2865 Include thumb_video_delay in tests 2015-02-23 23:40:19 +01:00
Simon Conseil
ff2c79ca6d Allow to specify the author of an album (ref #139).
The author can be set in the album's index.md or in the settings.
2015-01-19 23:42:47 +01:00
Simon Conseil
dbc92d136d Test if title is already unicode. 2014-11-23 16:02:23 +01:00
Simon Conseil
d42915a1ca Fix the title which was not unicode when using the settings file (fix #104). 2014-11-23 15:53:09 +01:00
Simon Conseil
aaf3a7d13e read_markdown returns meta only if found, + add test. (Closes #120) 2014-10-15 23:43:53 +02:00
Antoine Pitrou
e5b7e53e51 Fix #118: allow passthrough of original files 2014-10-05 16:50:01 +02:00
Simon Conseil
a0ed5d88ff Use cached properties to simplify the access to exif metadata. 2014-09-27 00:35:42 +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
Vikram Shirgur
9e92415a50 Allow destination to be read from option sepcified in config file.
Write error to log when destination doesn't exist and config is not available.

Add self to AUTHORS.

Remove logging from serve command due to issues with running test_cli.
Add test-case for 'serve' command.

Add docs for the serve command.
2014-09-05 00:13:02 +02:00
Simon Conseil
52ff2b947d Add warnings about imports in the settings file, to avoid breaking the
multiprocessing feature.
2014-09-04 22:49:01 +02:00
Simon Conseil
e7f9f91636 Replace argh with click. 2014-08-25 00:41:58 +02:00
Simon Conseil
e1d607ded8 This was not a good idea for Travis ... 2014-07-22 23:37:44 +02:00
Simon Conseil
054d1e2c00 Refactor subprocess calls for videos. 2014-07-22 23:00:24 +02:00
Simon Conseil
979e04a16c More tests. 2014-07-20 23:47:12 +02:00
Simon Conseil
71afbf5355 Adapt code to work with the latest changes on master. 2014-07-17 00:41:40 +02:00
Andreas Sieferlinger
b8733c68ec adding tests
easier accessible variables in templates
ticket #3 pull reequest #70
2014-07-16 23:03:15 +02:00
Andreas Sieferlinger
c070ad693b fixing some smaller issues for pull request #3 2014-07-16 23:03:15 +02:00
Simon Conseil
05f71e86e3 Add plugins in the test config file. 2014-06-07 22:32:45 +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
792bd0a6b5 Always use slashes for urls (ref #81). 2014-03-25 23:27:53 +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