Coding style
- Rename appearance_min to appearance.
This commit is contained in:
parent
6681101b1c
commit
695c1d7f96
7 changed files with 41 additions and 42 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue