From fbd55129eddcf3ac3e5cf0964de407f4a3f75f08 Mon Sep 17 00:00:00 2001 From: Constantin Hong Date: Tue, 7 May 2024 23:09:57 +0900 Subject: [PATCH] tests/test_xpath_selector_unit/fix: Typo --- changedetectionio/tests/test_xpath_selector_unit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"),