From 30d53c353f46a194e8f622c407a6394865a2b206 Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Sat, 27 Feb 2021 22:09:25 +0100 Subject: [PATCH] Tweak to tests --- backend/tests/test_ignore_text.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/tests/test_ignore_text.py b/backend/tests/test_ignore_text.py index eaaf8429..29ad7d06 100644 --- a/backend/tests/test_ignore_text.py +++ b/backend/tests/test_ignore_text.py @@ -96,6 +96,12 @@ def test_check_ignore_text_functionality(client, live_server): ) assert b"1 Imported" in res.data + # Trigger a check + client.get(url_for("api_watch_checknow"), follow_redirects=True) + + # Give the thread time to pick it up + time.sleep(sleep_time_for_fetch_thread) + # Goto the edit page, add our ignore text # Add our URL to the import page res = client.post(