test fixes

This commit is contained in:
Will McGugan
2022-05-27 10:24:32 +01:00
parent 3030557060
commit 303254f9ac
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ class Widget(DOMNode):
return self._content_width_cache[1]
console = self.app.console
renderable = self.render(self.styles.rich_style)
renderable = self.render()
measurement = Measurement.get(
console,
console.options.update_width(container.width),

View File

@@ -243,7 +243,7 @@ async def test_scrollbar_gutter(
from textual.geometry import Size
class TextWidget(Widget):
def render(self, styles) -> Text:
def render(self) -> Text:
text_multiplier = 10 if text_length == "long_text" else 2
return Text(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit liber a a a."