Enable all tests
This commit is contained in:
parent
9fba4b3d34
commit
26dc998f58
1 changed files with 5 additions and 5 deletions
|
@ -176,7 +176,7 @@ def test_multi_selector(selector: str, expected: list[Node]) -> None:
|
||||||
("div#innerDiv p.colour-primary", []),
|
("div#innerDiv p.colour-primary", []),
|
||||||
("div.nonexistent p.colour-secondary", []),
|
("div.nonexistent p.colour-secondary", []),
|
||||||
("div#topDiv div#topDiv", []),
|
("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:
|
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.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 a", [A_LINK]),
|
("div#topDiv >div a", [A_LINK]),
|
||||||
# ("div#topDiv >div:not(.colour-secondary) 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: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:
|
def test_whitespace_bonus(selector: str, expected: list[Node]) -> None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue