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