[dom] Simplify the implementation of the displayed_children property

This commit is contained in:
Olivier Philippon
2022-04-28 12:23:59 +01:00
parent f2bb9003c7
commit 72555f4a77
3 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import pytest
from textual.dom import NodeList
from textual.screen import Screen
from textual.widget import Widget
@@ -26,5 +26,5 @@ def test_nodes_take_display_property_into_account_when_they_display_their_childr
screen.add_child(widget)
displayed_children = screen.displayed_children
assert isinstance(displayed_children, NodeList)
assert isinstance(displayed_children, list)
assert (widget in screen.displayed_children) is expected_in_displayed_children