bug fix: last_changed was being set on the first fetch, should only be set on the change after the first fetch #705

This commit is contained in:
dgtlmoon
2022-06-23 09:41:55 +02:00
committed by GitHub
parent 5bfdb28bd2
commit 83555a9991
6 changed files with 17 additions and 10 deletions

View File

@@ -95,6 +95,8 @@ def test_api_simple(client, live_server):
assert watch_uuid in json.loads(res.data).keys()
before_recheck_info = json.loads(res.data)[watch_uuid]
assert before_recheck_info['last_checked'] != 0
#705 `last_changed` should be zero on the first check
assert before_recheck_info['last_changed'] == 0
assert before_recheck_info['title'] == 'My test URL'
set_modified_response()