|
|
@ -20,13 +20,6 @@ def test_headers_in_request(client, live_server):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
assert b"1 Imported" in res.data
|
|
|
|
assert b"1 Imported" in res.data
|
|
|
|
|
|
|
|
|
|
|
|
res = client.post(
|
|
|
|
|
|
|
|
url_for("import_page"),
|
|
|
|
|
|
|
|
data={"urls": test_url},
|
|
|
|
|
|
|
|
follow_redirects=True
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
assert b"1 Imported" in res.data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cookie_header = '_ga=GA1.2.1022228332; cookie-preferences=analytics:accepted;'
|
|
|
|
cookie_header = '_ga=GA1.2.1022228332; cookie-preferences=analytics:accepted;'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -42,7 +35,6 @@ def test_headers_in_request(client, live_server):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
assert b"Updated watch." in res.data
|
|
|
|
assert b"Updated watch." in res.data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Give the thread time to pick up the first version
|
|
|
|
# Give the thread time to pick up the first version
|
|
|
|
time.sleep(5)
|
|
|
|
time.sleep(5)
|
|
|
|
|
|
|
|
|
|
|
@ -77,14 +69,6 @@ def test_body_in_request(client, live_server):
|
|
|
|
# Add our URL to the import page
|
|
|
|
# Add our URL to the import page
|
|
|
|
test_url = url_for('test_body', _external=True)
|
|
|
|
test_url = url_for('test_body', _external=True)
|
|
|
|
|
|
|
|
|
|
|
|
# Add the test URL twice, we will check
|
|
|
|
|
|
|
|
res = client.post(
|
|
|
|
|
|
|
|
url_for("import_page"),
|
|
|
|
|
|
|
|
data={"urls": test_url},
|
|
|
|
|
|
|
|
follow_redirects=True
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
assert b"1 Imported" in res.data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res = client.post(
|
|
|
|
res = client.post(
|
|
|
|
url_for("import_page"),
|
|
|
|
url_for("import_page"),
|
|
|
|
data={"urls": test_url},
|
|
|
|
data={"urls": test_url},
|
|
|
@ -146,14 +130,6 @@ def test_method_in_request(client, live_server):
|
|
|
|
# Add our URL to the import page
|
|
|
|
# Add our URL to the import page
|
|
|
|
test_url = url_for('test_method', _external=True)
|
|
|
|
test_url = url_for('test_method', _external=True)
|
|
|
|
|
|
|
|
|
|
|
|
# Add the test URL twice, we will check
|
|
|
|
|
|
|
|
res = client.post(
|
|
|
|
|
|
|
|
url_for("import_page"),
|
|
|
|
|
|
|
|
data={"urls": test_url},
|
|
|
|
|
|
|
|
follow_redirects=True
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
assert b"1 Imported" in res.data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res = client.post(
|
|
|
|
res = client.post(
|
|
|
|
url_for("import_page"),
|
|
|
|
url_for("import_page"),
|
|
|
|
data={"urls": test_url},
|
|
|
|
data={"urls": test_url},
|
|
|
|