From 7ded35a3ac80938366a831c1491dbc5cc5f6ab22 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 22 May 2023 16:35:50 +0200 Subject: [PATCH] Tweak language, add more test --- changedetectionio/templates/edit.html | 2 +- changedetectionio/tests/test_request.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changedetectionio/templates/edit.html b/changedetectionio/templates/edit.html index 877dba6da..40b1101fd 100644 --- a/changedetectionio/templates/edit.html +++ b/changedetectionio/templates/edit.html @@ -157,7 +157,7 @@ User-Agent: wonderbra 1.0") }} {% if has_extra_headers_file %} Alert! Extra headers file found and will be added to this watch! {% else %} - Headers can be read from a textfile in your data-directory Read more here + Headers can be also read from a file in your data-directory Read more here {% endif %} diff --git a/changedetectionio/tests/test_request.py b/changedetectionio/tests/test_request.py index feaed72aa..06e518e16 100644 --- a/changedetectionio/tests/test_request.py +++ b/changedetectionio/tests/test_request.py @@ -280,6 +280,10 @@ def test_headers_textfile_in_request(client, live_server): # Give the thread time to pick it up wait_for_all_checks(client) + + res = client.get(url_for("edit_page", uuid="first")) + assert b"Extra headers file found and will be added to this watch" in res.data + # Not needed anymore os.unlink('test-datastore/headers.txt') os.unlink('test-datastore/headers-testtag.txt')