mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-12 08:26:21 +00:00
Fix test
This commit is contained in:
@@ -47,12 +47,8 @@ def test_check_basic_change_detection_functionality_source(client, live_server,
|
||||
)
|
||||
# With diff-match-patch, HTML tags are properly tokenized and excluded from diff spans
|
||||
# Only "modified" is shown as added, while <head> and <title> tags remain unchanged
|
||||
assert b'<head><title>' in res.data
|
||||
|
||||
assert b'title="Added"' in res.data
|
||||
assert b'>modified<' in res.data
|
||||
assert b'head title</title></head>' in res.data
|
||||
|
||||
assert b'aria-label="Changed into" title="Changed into">' in res.data
|
||||
assert b'<title>modified head title'
|
||||
|
||||
# `subtractive_selectors` should still work in `source:` type requests
|
||||
def test_check_ignore_elements(client, live_server, measure_memory_usage):
|
||||
|
||||
Reference in New Issue
Block a user