diff options
| author | rr- | 2016-08-20 13:04:49 +0200 |
|---|---|---|
| committer | rr- | 2016-08-20 13:06:19 +0200 |
| commit | 28bcbd33b9f1203c8161988a30ad008c5490d064 (patch) | |
| tree | 353ce385752197ce9c8611f7f090b9cd7a534b7e /server/szurubooru/tests/func/test_posts.py | |
| parent | 9014baab92007fcdd624be9e81e45ba92dce97ae (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.py | 4 |
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': { |