aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_submission.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-21 14:45:40 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-27 17:19:50 +0200
commit3b359dddc7c08326db21ddf9666836df79658b6f (patch)
treefad371845d0cd502da01ca6fb7d96c5bd2584cb7 /mediagoblin/tests/test_submission.py
parentf96c284e0a4bc94b065eea1227e45cfa17846f66 (diff)
downloadmediagoblin-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.py2
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