[core/output] Add id of widget and module to output

In the process of that, fix a bug in how the parent class constructors
were invoked.
This commit is contained in:
Tobias Witek 2020-02-08 13:45:52 +01:00
parent 4d34fa9261
commit fca364554e
4 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import unittest
import util.store
class config(unittest.TestCase):
class store(unittest.TestCase):
def setUp(self):
self.store = util.store.Store()
@ -12,9 +12,6 @@ class config(unittest.TestCase):
self.someValue = "someRandomValue"
self.someOtherValue = "anotherRandomValue"
def tearDown(self):
pass
def test_get_of_unset_key(self):
self.assertEqual(None, self.store.get(self.unusedKey), 'default value expected to be None')
self.assertEqual(self.someValue, self.store.get(self.unusedKey, self.someValue), 'wrong user-provided default value returned')