aboutsummaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/func/test_posts.py
diff options
context:
space:
mode:
authorrr-2016-08-20 13:04:49 +0200
committerrr-2016-08-20 13:06:19 +0200
commit28bcbd33b9f1203c8161988a30ad008c5490d064 (patch)
tree353ce385752197ce9c8611f7f090b9cd7a534b7e /server/szurubooru/tests/func/test_posts.py
parent9014baab92007fcdd624be9e81e45ba92dce97ae (diff)
server/posts: use SHA1 checksums
This changes the checksums to ones that are compatible with 1.x, which relieves the migration script from recalculating the checksums for all the posts.
Diffstat (limited to 'server/szurubooru/tests/func/test_posts.py')
-rw-r--r--server/szurubooru/tests/func/test_posts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/szurubooru/tests/func/test_posts.py b/server/szurubooru/tests/func/test_posts.py
index 43581b6..4429c0f 100644
--- a/server/szurubooru/tests/func/test_posts.py
+++ b/server/szurubooru/tests/func/test_posts.py
@@ -288,8 +288,8 @@ def test_update_post_content(
expected_mime_type,
expected_type,
output_file_name):
- with patch('szurubooru.func.util.get_md5'):
- util.get_md5.return_value = 'crc'
+ with patch('szurubooru.func.util.get_sha1'):
+ util.get_sha1.return_value = 'crc'
config_injector({
'data_dir': str(tmpdir.mkdir('data')),
'thumbnails': {

© 2015 - 2026 Jakob L. Kreuze