[tests] Generic module tests
Add a helper function that lists all existing modules and modify the CPU module test so that it now generically iterates all available modules and tests their widgets. see #23
This commit is contained in:
parent
f40418475f
commit
a7e756e015
4 changed files with 47 additions and 23 deletions
|
@ -6,6 +6,9 @@ def assertWidgetAttributes(test, widget):
|
|||
test.assertTrue(isinstance(widget, Widget))
|
||||
test.assertTrue(hasattr(widget, "full_text"))
|
||||
|
||||
class MockEngine(object):
|
||||
pass
|
||||
|
||||
class MockOutput(object):
|
||||
def start(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue