Tweak language, add more test

1448-basic-headers-fetch-from-file
dgtlmoon 1 year ago
parent 6ace90a8ea
commit 7ded35a3ac

@ -157,7 +157,7 @@ User-Agent: wonderbra 1.0") }}
{% if has_extra_headers_file %}
<strong>Alert! Extra headers file found and will be added to this watch!</strong>
{% else %}
Headers can be read from a textfile in your data-directory <a href="https://github.com/dgtlmoon/changedetection.io/wiki/Adding-headers-from-an-external-file">Read more here</a>
Headers can be also read from a file in your data-directory <a href="https://github.com/dgtlmoon/changedetection.io/wiki/Adding-headers-from-an-external-file">Read more here</a>
{% endif %}
</div>

@ -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')

Loading…
Cancel
Save