This commit is contained in:
dgtlmoon
2024-06-12 16:31:46 +02:00
parent e756002b9a
commit 99f7f78798
2 changed files with 11 additions and 4 deletions
@@ -183,9 +183,6 @@ class perform_site_check(difference_detection_processor):
if price < max_limit and price > min_limit:
changed_detected = False
# Always record the new checksum
update_obj["previous_md5"] = fetched_md5
return changed_detected, update_obj, self.fetcher.instock_data.encode('utf-8').strip()
@@ -173,4 +173,14 @@ def test_itemprop_price_minmax_limit(client, live_server):
wait_for_all_checks(client)
res = client.get(url_for("index"))
assert b'890.45' in res.data
assert b'unviewed' in res.data
assert b'unviewed' in res.data
client.get(url_for("mark_all_viewed"))
# price changed to something MORE than max (1100.10), SHOULD be a change
set_original_response(props_markup=instock_props[0], price='1890.45')
client.get(url_for("form_watch_checknow"), follow_redirects=True)
wait_for_all_checks(client)
res = client.get(url_for("index"))
assert b'1890.45' in res.data
assert b'unviewed' in res.data