[tests] Add generic module tests

These tests check that all widgets of all modules conform to some basic
principles, at least.
This commit is contained in:
Tobi-wan Kenobi 2017-03-05 13:30:10 +01:00
parent f9984ba386
commit 826c568625
2 changed files with 51 additions and 2 deletions

View file

@ -53,9 +53,7 @@ class Module(bumblebee.engine.Module):
def __init__(self, engine, config):
widget = bumblebee.output.Widget(full_text=self.updates)
super(Module, self).__init__(engine, config, widget)
self._next_check = 0
widget
def updates(self, widget):
result = []