From 488699b7d46aadd28a52ca6752f1e83d7ea70591 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 29 Jul 2022 10:23:59 +0200 Subject: [PATCH] Test improvement - remove unnecessary step --- changedetectionio/tests/test_errorhandling.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/changedetectionio/tests/test_errorhandling.py b/changedetectionio/tests/test_errorhandling.py index c07347a5..0a0d5d6c 100644 --- a/changedetectionio/tests/test_errorhandling.py +++ b/changedetectionio/tests/test_errorhandling.py @@ -28,13 +28,9 @@ def test_error_handler(client, live_server): ) assert b"1 Imported" in res.data - # Trigger a check - client.get(url_for("form_watch_checknow"), follow_redirects=True) - # Give the thread time to pick it up time.sleep(3) - res = client.get(url_for("index")) assert b'unviewed' not in res.data assert b'Status Code 403' in res.data @@ -53,9 +49,6 @@ def test_error_text_handler(client, live_server): ) assert b"1 Imported" in res.data - # Trigger a check - client.get(url_for("form_watch_checknow"), follow_redirects=True) - # Give the thread time to pick it up time.sleep(3)