Commit Graph

197 Commits

Author SHA1 Message Date
Simon Conseil
705e41a908 Another fix for test_ignores 2018-09-05 17:38:07 +02:00
Simon Conseil
5b37e6b1e3 Fix video test 2018-09-05 13:26:05 +02:00
Simon Conseil
fbb056e3b9 Add doc page with licenses and replace a few images
whose license/origin is unclear
2018-09-05 09:00:55 +02:00
Simon Conseil
75c4ab13aa Try running test_album without setting the locale (#339) 2018-09-02 22:04:25 +02:00
Simon Conseil
23cc8a994b Remove encoding specification 2018-08-27 00:15:17 +02:00
Simon Conseil
915030a2f3 Remove the u prefix for unicode strings 2018-08-27 00:11:07 +02:00
Glandos
f95393b114 empty content means empty meta dict, not absent 2018-06-19 22:43:43 +02:00
Simon Conseil
f178a50b5e Remove duplicated assert 2018-03-18 23:20:27 +01:00
Simon Conseil
f2753ba52d Merge pull request #302 from Glandos/more_compress_tests
[compress_assets] Mission: 100% coverage
2018-03-18 22:01:38 +01:00
Glandos
99c7af208b Remove custom code to mask modules, use builtin features.
Note that it uses unittest.mock that is available from Python 3.3
2018-03-11 21:08:55 +01:00
Simon Conseil
599115a20f Use subprocess.run instead of custom wrapper 2018-03-11 01:22:11 +01:00
Simon Conseil
4bab96fdde Remove py2 code 2018-03-05 00:53:39 +01:00
Glandos
a4cfce4371 prepend instead of appending, to be the first 2018-02-20 22:25:00 +01:00
Glandos
f8f67db0d9 Return a loader, to be sure to interrupt the finder algorithm 2018-02-20 22:24:41 +01:00
Glandos
dda9fbc592 delete existing import harder 2018-02-20 22:24:09 +01:00
Glandos
2b3fcbaac3 make a function for duplicated code 2018-02-19 22:30:00 +01:00
Glandos
0e698e58b9 test no compression cases 2018-02-19 22:26:56 +01:00
Glandos
2d8f32cab4 Add a module masker fixture.
This is handy to make some module disappear to test an import failure.
2018-02-19 22:25:20 +01:00
Glandos
43139092ab test compression twice to ensure we test the stat path 2018-02-19 22:23:48 +01:00
Glandos
a832e35d38 speed up tests by using original media.
We don't care about media processing here.
2018-02-19 22:21:27 +01:00
Simon Conseil
2f29efbf9e Reuse the disconnect_signals fixture 2018-02-16 23:36:52 +01:00
Glandos
93f51e3e56 Use parameters for parametrized test
Instead of hardcoded values…
2018-02-16 09:24:33 +01:00
Glandos
bb7c752019 Add compress_assets plugin:
- The plugin
- Configuration
- Myself as author
- Docs
- Tests
- Dependencies for Travis
2018-02-15 22:55:47 +01:00
Simon Conseil
c2cdb22c57 Merge pull request #297 from edwinsteele/feature/get-title-desc-from-iptc
Populate title & description from IPTC image data
2018-02-15 11:38:39 +01:00
Edwin Steele
45cf226f17 Move iptc field extraction to image.py 2018-02-15 17:14:37 +11:00
Edwin Steele
ef07f1e7a7 Populate title & description from IPTC image data
The IPTC spec defines title and description fields so use those
to populate these fields on the Image unless they've been set by
some other means.
2018-02-13 17:07:54 +11:00
Simon Conseil
50072e2e2f Clear signals after testing plugins 2018-02-10 00:07:28 +01:00
Simon Conseil
e35d95557a Test files_to_copy 2018-01-07 00:59:41 +01:00
Simon Conseil
219a730190 Test the feeds plugin 2018-01-07 00:38:35 +01:00
Simon Conseil
5a8046caa1 Fix py2 compat 2018-01-05 00:32:13 +01:00
Simon Conseil
3fe48b05f3 more tests for plugins 2018-01-04 00:33:17 +01:00
Simon Conseil
72e58f0eef Add test for the build command 2018-01-03 23:09:35 +01:00
Simon Conseil
498d94c2b3 Add video_converter to the settings dict
Also split arguments for image and video's generate_thumbnail functions.
2018-01-03 18:52:15 +01:00
Simon Conseil
1e96a7c939 Add setting to customize the EXIF datetime format (fix #271)
- The default format is now `%c`
- Fix documentation confusion between ``datetime`` and ``dateobj``
2018-01-03 17:11:58 +01:00
Edward Betts
311d203e3a correct spelling mistakes 2017-10-23 08:18:08 +01:00
Matthias Vogelgesang
0a62cb38fd Test portrait/landscape resize correctness 2017-10-09 14:09:49 +02:00
Simon Conseil
c775557681 Remove the exif cache for test to avoid side effect when building the
test gallery
2017-03-12 01:01:08 +01:00
Simon Conseil
433f1fd92a Cleanup, pep8 2017-02-06 00:21:44 +01:00
Tilman Adler
825e1dab41 plugin to cache the exif data of images 2017-02-02 18:24:00 +01:00
Tilman Adler
5d9d337cb4 add a plugin for finer control over ignored files 2017-01-22 22:27:20 +01:00
Simon Conseil
8f12e0f62f Use leaflet-providers.js to allow chosing the tile provider (ref #218) 2016-10-24 00:28:10 +02:00
Simon Conseil
95085af122 Add test for ignore_directories with special characters (ref #222) 2016-10-02 00:04:33 +02:00
Simon Conseil
929f612335 Merge pull request #203 from tohojo/title-command
Add 'title' command.
2016-05-02 10:32:03 +02:00
Toke Høiland-Jørgensen
e6519d121a Add test for set_meta command.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-05-02 01:18:33 +02:00
Toke Høiland-Jørgensen
a8efae9805 Add test for sorting images on meta keys.
This test also tests the missing meta key functionality.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-05-02 00:21:56 +02:00
Toke Høiland-Jørgensen
fec1a78d25 Fix read_metadata to not return a title if none is defined in index.md.
This fixes the test breakage from adding an index.md with only an Order
key defined.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-05-02 00:17:38 +02:00
Toke Høiland-Jørgensen
4c82aca9a0 Add tests for sorting on metadata keys.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-05-02 00:17:38 +02:00
Jorge Gallegos
6eb570ceb7 Adding a test that showcases the bug
I found a couple of images where the ISOSpeedRatings value is an empty
tuple. This makes sigal sad.
2016-04-07 10:36:42 -07:00
Simon Conseil
23951fea45 Update photoswipe 4.1.1 2016-03-06 00:05:23 +01:00
Simon Conseil
3e8ef322cf Fix encoding error with the feed plugin on PY2 (Ref #194) 2016-02-22 23:58:43 +01:00