diff --git a/changedetectionio/tests/test_xpath_selector_unit.py b/changedetectionio/tests/test_xpath_selector_unit.py index 3f08de17..131054c5 100644 --- a/changedetectionio/tests/test_xpath_selector_unit.py +++ b/changedetectionio/tests/test_xpath_selector_unit.py @@ -202,7 +202,7 @@ def test_trips(html_content, xpath, answer): assert type(html_content) == str assert answer in html_content -DOM_violation_two_html_root_element = =""" +DOM_violation_two_html_root_element = """

Hello absurd world

@@ -216,7 +216,6 @@ DOM_violation_two_html_root_element = ="""

Therefore, if the path is /html/body/p[1], lxml(libxml2) returns two element nodes not one.

""" - @pytest.mark.parametrize("html_content", [DOM_violation_two_html_root_element]) @pytest.mark.parametrize("xpath, answer", [ ("/html/body/p[1]", "Browsers parse this part by fixing it but lxml doesn't and returns two root element node"),