From 606e29f7eeea459c6e6482ce341c3ffd06c4d3f3 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 13 Jun 2024 10:26:34 +0200 Subject: [PATCH] test tweak --- changedetectionio/tests/test_request.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/changedetectionio/tests/test_request.py b/changedetectionio/tests/test_request.py index 9233b759..1ec501fe 100644 --- a/changedetectionio/tests/test_request.py +++ b/changedetectionio/tests/test_request.py @@ -306,7 +306,8 @@ def test_ua_global_override(client, live_server): ) assert b"agent-from-watch" in res.data assert b"html-requests-user-agent" not in res.data - + res = client.get(url_for("form_delete", uuid="all"), follow_redirects=True) + assert b'Deleted' in res.data def test_headers_textfile_in_request(client, live_server): #live_server_setup(live_server) @@ -388,7 +389,7 @@ def test_headers_textfile_in_request(client, live_server): # Not needed anymore os.unlink('test-datastore/headers.txt') os.unlink('test-datastore/headers-testtag.txt') - os.unlink('test-datastore/' + extract_UUID_from_client(client) + '/headers.txt') + # The service should echo back the request verb res = client.get( url_for("preview_page", uuid="first"),