Enable all tests

This commit is contained in:
ItsDrike 2025-07-27 15:35:56 +02:00
parent 9fba4b3d34
commit 26dc998f58
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -176,7 +176,7 @@ def test_multi_selector(selector: str, expected: list[Node]) -> None:
("div#innerDiv p.colour-primary", []),
("div.nonexistent p.colour-secondary", []),
("div#topDiv div#topDiv", []),
# ("div#topDiv > div.container > a", [A_LINK]),
("div#topDiv > div.container > a", [A_LINK]),
],
)
def test_descendant_selector(selector: str, expected: list[Node]) -> None:
@ -320,15 +320,15 @@ def test_whitespace_basic(selector: str, expected: list[Node]) -> None:
("div.container >h1", [H1]),
("div.container > h1", [H1]),
("div.container > h1", [H1]),
# ("div#topDiv >div> a", [A_LINK]),
# ("div#topDiv >div a", [A_LINK]),
# ("div#topDiv >div:not(.colour-secondary) a", [A_LINK]),
("div#topDiv >div> a", [A_LINK]),
("div#topDiv >div a", [A_LINK]),
("div#topDiv >div:not(.colour-secondary) a", [A_LINK]),
("div:not(.colour-secondary)", [TOP_DIV, INNER_DIV]),
("div:not( .colour-secondary)", [TOP_DIV, INNER_DIV]),
("div:not(.colour-secondary )", [TOP_DIV, INNER_DIV]),
("div:not( .colour-secondary )", [TOP_DIV, INNER_DIV]),
("div:not( .colour-secondary )", [TOP_DIV, INNER_DIV]),
# ("div#topDiv >div:not( .colour-secondary ) a", [A_LINK]),
("div#topDiv >div:not( .colour-secondary ) a", [A_LINK]),
],
)
def test_whitespace_bonus(selector: str, expected: list[Node]) -> None: