Skip to content

Commit db979f5

Browse files
committed
tests
1 parent bcd1c09 commit db979f5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/textual/css/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
@lru_cache(maxsize=128)
4747
def 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.

tests/css/test_parse.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)