mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix test
This commit is contained in:
@@ -37,9 +37,9 @@ def test_widget_content_width():
|
|||||||
class TextWidget(Widget):
|
class TextWidget(Widget):
|
||||||
def __init__(self, text: str, id: str) -> None:
|
def __init__(self, text: str, id: str) -> None:
|
||||||
self.text = text
|
self.text = text
|
||||||
|
|
||||||
super().__init__(id=id)
|
super().__init__(id=id)
|
||||||
self.expand = True
|
self.expand = False
|
||||||
|
self.shrink = True
|
||||||
|
|
||||||
def render(self) -> str:
|
def render(self) -> str:
|
||||||
return self.text
|
return self.text
|
||||||
|
|||||||
Reference in New Issue
Block a user