mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-24 14:25:53 +00:00
fix test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user