Add test for direct EventHandler.process() call
This commit is contained in:
parent
19652f165e
commit
e9705a71ab
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,11 @@ class TestProcessor(unittest.TestCase):
|
|||
*args,
|
||||
)
|
||||
|
||||
def test_event_handler_process(self) -> None:
|
||||
# Should not be called directly
|
||||
with self.assertRaises(AssertionError):
|
||||
EventHandler.process([])
|
||||
|
||||
def test_handler_wrong_signature(self) -> None:
|
||||
handler = WrongHandler()
|
||||
mock_event = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue