[core] Refactor -> replace some getter/setter pairs with attributes
Remove some set_* methods and replace them with a simple attribute. see #23
This commit is contained in:
parent
068968bbf5
commit
e59e969bdc
7 changed files with 16 additions and 21 deletions
|
@ -31,14 +31,11 @@ class MockOutput(object):
|
|||
class MockWidget(object):
|
||||
def __init__(self, text):
|
||||
self._text = text
|
||||
self.attr_module = None
|
||||
self.module = None
|
||||
|
||||
def update(self, widgets):
|
||||
pass
|
||||
|
||||
def module(self):
|
||||
return self.attr_module
|
||||
|
||||
def full_text(self):
|
||||
return self._text
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue