diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-04-21 14:45:40 +0200 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2013-04-27 17:19:50 +0200 |
commit | 3b359dddc7c08326db21ddf9666836df79658b6f (patch) | |
tree | fad371845d0cd502da01ca6fb7d96c5bd2584cb7 /mediagoblin/tests/test_submission.py | |
parent | f96c284e0a4bc94b065eea1227e45cfa17846f66 (diff) | |
download | mediagoblin-3b359dddc7c08326db21ddf9666836df79658b6f.tar.lz mediagoblin-3b359dddc7c08326db21ddf9666836df79658b6f.tar.xz mediagoblin-3b359dddc7c08326db21ddf9666836df79658b6f.zip |
image resizing: Refactor some decisions into resize_tool.
Loading the thumb/medium sizes from the config, saving
things to the db, and loading the image is now all done by
resize_tool. It still calls resize_image for the actual
work.
Diffstat (limited to 'mediagoblin/tests/test_submission.py')
-rw-r--r-- | mediagoblin/tests/test_submission.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tests/test_submission.py b/mediagoblin/tests/test_submission.py index 5ac47316..162b2d19 100644 --- a/mediagoblin/tests/test_submission.py +++ b/mediagoblin/tests/test_submission.py @@ -286,7 +286,7 @@ class TestSubmission: # Does the processed image have a good filename? filename = os.path.join( public_store_dir, - *media.media_files.get(key, [])) + *media.media_files[key]) assert filename.endswith('_' + basename) # Is it smaller than the last processed image we looked at? size = os.stat(filename).st_size |