From b1a20a7134a8108bbdaf2d9aba73503e436bbdfb Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 25 Jul 2018 19:53:37 +0200 Subject: [PATCH] tests: fix failing tests Regression caused by changing the way images are converted to grayscale in 9730aa5c --- server/szurubooru/tests/func/test_image_hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/szurubooru/tests/func/test_image_hash.py b/server/szurubooru/tests/func/test_image_hash.py index 1b6efd21..192d175b 100644 --- a/server/szurubooru/tests/func/test_image_hash.py +++ b/server/szurubooru/tests/func/test_image_hash.py @@ -24,5 +24,5 @@ def test_hashing(read_asset, config_injector): assert results_exact[0].score == 63 assert results_exact[0].distance == 0 assert results_similar[0].path == 'test' - assert results_similar[0].score == 26 - assert abs(results_similar[0].distance - 0.189390583) < 1e-8 + assert results_similar[0].score == 17 + assert abs(results_similar[0].distance - 0.20599895341812172) < 1e-8