[core] do not scroll errors

to make errors easier to diagnose, do not scroll them, but instead fully
show them.

also, re-introduce the supplementary fields for the dwm bridge, kudos to
@somospocos
This commit is contained in:
tobi-wan-kenobi 2020-05-01 15:33:31 +02:00
parent 4daae88a7c
commit 2ab575d190
5 changed files with 14 additions and 20 deletions

View file

@ -36,7 +36,7 @@ class module(unittest.TestCase):
module = core.module.load(module_name=self.validModuleName, config=config)
module.widget().full_text()
self.assertEqual('Error', module.__class__.__name__, 'an invalid module must be a core.module.Error')
self.assertEqual(module.widget().get('_raw'), 'test: some-error')
self.assertEqual(module.widget().full_text(), 'test: some-error')
def test_loadvalid_module(self):
module = core.module.load(module_name=self.validModuleName)