From 8804ced181dce171b5c17f4b0218a2e72d859054 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 17 Sep 2024 17:33:50 +0200 Subject: [PATCH] Restock tweak --- changedetectionio/tests/test_restock_itemprop.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/changedetectionio/tests/test_restock_itemprop.py b/changedetectionio/tests/test_restock_itemprop.py index c873aa22..eb2e731b 100644 --- a/changedetectionio/tests/test_restock_itemprop.py +++ b/changedetectionio/tests/test_restock_itemprop.py @@ -146,14 +146,13 @@ def _run_test_minmax_limit(client, extra_watch_edit_form): data={"url": test_url, "tags": 'restock tests', 'processor': 'restock_diff'}, follow_redirects=True ) - - # A change in price, should trigger a change by default wait_for_all_checks(client) data = { "tags": "", "url": test_url, "headers": "", + "time_between_check-hours": 5, 'fetch_backend': "html_requests" } data.update(extra_watch_edit_form) @@ -178,12 +177,9 @@ def _run_test_minmax_limit(client, extra_watch_edit_form): assert b'1,000.45' or b'1000.45' in res.data #depending on locale assert b'unviewed' not in res.data - # price changed to something LESS than min (900), SHOULD be a change set_original_response(props_markup=instock_props[0], price='890.45') - # let previous runs wait - time.sleep(2) - + res = client.get(url_for("form_watch_checknow"), follow_redirects=True) assert b'1 watches queued for rechecking.' in res.data wait_for_all_checks(client)