We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e526daf commit b5e5118Copy full SHA for b5e5118
tests/test_static.py
@@ -0,0 +1,18 @@
1
+from textual.content import Content
2
+from textual.widgets import Static
3
+
4
5
+def test_content_property():
6
+ static = Static()
7
+ assert static.content == ""
8
+ static.content = "Foo"
9
+ assert static.content == "Foo"
10
+ assert isinstance(static.content, str)
11
+ assert static.visual == "Foo"
12
+ assert isinstance(static.visual, Content)
13
14
+ static.update("Hello")
15
+ assert static.content == "Hello"
16
17
+ assert static.visual == "Hello"
18
0 commit comments