[core] Rename events for more clarity

This commit is contained in:
tobi-wan-kenobi 2020-04-12 20:11:02 +02:00
parent b5b62c8827
commit 9e32cdef5d
4 changed files with 8 additions and 8 deletions

View file

@ -65,7 +65,7 @@ class theme(unittest.TestCase):
self.assertEqual(self.cycleTheme['cycle'][2]['bg'], theme.get('bg'))
with unittest.mock.patch('core.output.sys.stdout'):
core.event.trigger('update')
core.event.trigger('draw')
self.assertEqual(self.cycleTheme['cycle'][0]['fg'], theme.get('fg'))
self.assertEqual(self.cycleTheme['cycle'][0]['bg'], theme.get('bg'))
@ -109,7 +109,7 @@ class theme(unittest.TestCase):
for i in range(0, len(expected)*3):
self.assertEqual(expected[i%len(expected)], theme.get('fg', widget))
self.assertEqual(expected[i%len(expected)], theme.get('fg', widget)) # ensure multiple invocations are OK
core.event.trigger('update')
core.event.trigger('draw')
def test_state(self):
widget = core.widget.Widget()