Coding style

- Rename appearance_min to appearance.
This commit is contained in:
Andrew Hamilton 2022-01-18 14:37:12 +10:00
parent 6681101b1c
commit 695c1d7f96
7 changed files with 41 additions and 42 deletions

View file

@ -22,7 +22,7 @@ _DIMENSIONS = (100, 60)
def _widget_to_string(widget, dimensions=_DIMENSIONS):
appearance = (widget.appearance_min() if dimensions is None
appearance = (widget.appearance() if dimensions is None
else widget.appearance_for(dimensions))
return str(fill3.join("\n", appearance))

View file

@ -31,8 +31,7 @@ class ExecutablesTestCase(unittest.TestCase):
def widget_to_string(widget):
appearance = widget.appearance_min()
return str(fill3.join("\n", appearance))
return str(fill3.join("\n", widget.appearance()))
@contextlib.contextmanager