Adding support for change detection of HTML source-code via "source:https://website.com" prefix (#540)

This commit is contained in:
dgtlmoon
2022-04-12 17:36:29 +02:00
committed by GitHub
parent d7ed7c44ed
commit 380c512cc2
7 changed files with 142 additions and 19 deletions

View File

@@ -50,6 +50,14 @@ def test_check_basic_change_detection_functionality(client, live_server):
#####################
# Check HTML conversion detected and workd
res = client.get(
url_for("preview_page", uuid="first"),
follow_redirects=True
)
# Check this class does not appear (that we didnt see the actual source)
assert b'foobar-detection' not in res.data
# Make a change
set_modified_response()