File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4545
4646@lru_cache (maxsize = 128 )
4747def is_id_selector (selector : str ) -> bool :
48- """Is the selector an single ID selector, i.e. "#foo"?
48+ """Is the selector a single ID selector, i.e. "#foo"?
4949
5050 Args:
5151 selector: A CSS selector.
Original file line number Diff line number Diff line change @@ -1289,8 +1289,10 @@ def test_parse_bad_pseudo_selector_with_suggestion():
12891289 ("#foo .bar" , False ),
12901290 ("#foo>.bar" , False ),
12911291 ("#foo.bar" , False ),
1292+ (".foo #foo" , False ),
1293+ ("#foo #bar" , False ),
12921294 ],
12931295)
1294- def test_is_id_selector (selector : str , expected : bool ):
1295- """Test is_id_selector is working as expected"""
1296+ def test_is_id_selector (selector : str , expected : bool ) -> None :
1297+ """Test is_id_selector is working as expected. """
12961298 assert is_id_selector (selector ) is expected
You can’t perform that action at this time.
0 commit comments