|
|
|
@ -20,13 +20,15 @@ def test_setup(client, live_server):
|
|
|
|
|
|
|
|
|
|
# Assert that non-200's dont give notifications or register as a change
|
|
|
|
|
def test_non_200_doesnt_trigger_change(client, live_server):
|
|
|
|
|
# live_server_setup(live_server)
|
|
|
|
|
|
|
|
|
|
set_original_response()
|
|
|
|
|
#live_server_setup(live_server)
|
|
|
|
|
url = url_for('test_changing_status_code_endpoint', _external=True)
|
|
|
|
|
|
|
|
|
|
# Add our URL to the import page
|
|
|
|
|
res = client.post(
|
|
|
|
|
url_for("import_page"),
|
|
|
|
|
data={"urls": url_for('test_changing_status_code_endpoint', _external=True)},
|
|
|
|
|
data={"urls": url},
|
|
|
|
|
follow_redirects=True
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -40,9 +42,8 @@ def test_non_200_doesnt_trigger_change(client, live_server):
|
|
|
|
|
"include_filters": ".foobar-detection",
|
|
|
|
|
"fetch_backend": "html_requests",
|
|
|
|
|
"headers": "",
|
|
|
|
|
"proxy": "proxy-two",
|
|
|
|
|
"tag": "",
|
|
|
|
|
"url": url_for('test_changing_status_code_endpoint', _external=True),
|
|
|
|
|
"url": url
|
|
|
|
|
},
|
|
|
|
|
follow_redirects=True
|
|
|
|
|
)
|
|
|
|
@ -53,7 +54,6 @@ def test_non_200_doesnt_trigger_change(client, live_server):
|
|
|
|
|
# hit the mark all viewed link
|
|
|
|
|
res = client.get(url_for("mark_all_viewed"), follow_redirects=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Now be sure the filter is missing and then recheck it
|
|
|
|
|
set_modified_response()
|
|
|
|
|
|
|
|
|
|