From 343e371032665ae6e68ecd2a2314eb1f750fb142 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 25 Jan 2022 10:50:25 +0100 Subject: [PATCH] Fix dupes in request test --- changedetectionio/tests/test_request.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/changedetectionio/tests/test_request.py b/changedetectionio/tests/test_request.py index ab613d8fa..13941528c 100644 --- a/changedetectionio/tests/test_request.py +++ b/changedetectionio/tests/test_request.py @@ -20,13 +20,6 @@ def test_headers_in_request(client, live_server): ) 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;' @@ -42,7 +35,6 @@ def test_headers_in_request(client, live_server): ) assert b"Updated watch." in res.data - # Give the thread time to pick up the first version time.sleep(5) @@ -77,14 +69,6 @@ def test_body_in_request(client, live_server): # Add our URL to the import page 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( url_for("import_page"), data={"urls": test_url}, @@ -146,14 +130,6 @@ def test_method_in_request(client, live_server): # Add our URL to the import page 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( url_for("import_page"), data={"urls": test_url},