mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
test fixes
This commit is contained in:
@@ -195,7 +195,7 @@ class Widget(DOMNode):
|
|||||||
return self._content_width_cache[1]
|
return self._content_width_cache[1]
|
||||||
|
|
||||||
console = self.app.console
|
console = self.app.console
|
||||||
renderable = self.render(self.styles.rich_style)
|
renderable = self.render()
|
||||||
measurement = Measurement.get(
|
measurement = Measurement.get(
|
||||||
console,
|
console,
|
||||||
console.options.update_width(container.width),
|
console.options.update_width(container.width),
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ async def test_scrollbar_gutter(
|
|||||||
from textual.geometry import Size
|
from textual.geometry import Size
|
||||||
|
|
||||||
class TextWidget(Widget):
|
class TextWidget(Widget):
|
||||||
def render(self, styles) -> Text:
|
def render(self) -> Text:
|
||||||
text_multiplier = 10 if text_length == "long_text" else 2
|
text_multiplier = 10 if text_length == "long_text" else 2
|
||||||
return Text(
|
return Text(
|
||||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit liber a a a."
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit liber a a a."
|
||||||
|
|||||||
Reference in New Issue
Block a user