mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
words
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
|
||||
from textual.css.errors import StyleValueError
|
||||
from textual.css.query import NoMatchingNodesError
|
||||
from textual.css.query import NoMatches
|
||||
from textual.dom import DOMNode, BadIdentifier
|
||||
|
||||
|
||||
@@ -48,12 +48,12 @@ def test_get_child_gets_first_child(parent):
|
||||
|
||||
|
||||
def test_get_child_no_matching_child(parent):
|
||||
with pytest.raises(NoMatchingNodesError):
|
||||
with pytest.raises(NoMatches):
|
||||
parent.get_child(id="doesnt-exist")
|
||||
|
||||
|
||||
def test_get_child_only_immediate_descendents(parent):
|
||||
with pytest.raises(NoMatchingNodesError):
|
||||
with pytest.raises(NoMatches):
|
||||
parent.get_child(id="grandchild1")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user