diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-02-10 01:17:35 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-02-23 18:47:05 +0100 |
commit | 6238505ebd5665e53edd94b7a12e4a2e67e9b9e9 (patch) | |
tree | 3686786fb8ba7a485cf6c6c6b40a480b8dfe4f80 /_pytest | |
parent | 39e9794c6600306c21d140b8a5cb3ca2f1043688 (diff) | |
download | wee-slack-6238505ebd5665e53edd94b7a12e4a2e67e9b9e9.tar.gz |
Pass team/channel to handle/process methods directly
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_eventrouter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_pytest/test_eventrouter.py b/_pytest/test_eventrouter.py index beb624e..de267c1 100644 --- a/_pytest/test_eventrouter.py +++ b/_pytest/test_eventrouter.py @@ -13,7 +13,7 @@ def test_EventRouter(mock_weechat): # Handling an event removes from the queue. e = EventRouter() # Create a function to test we are called - e.proc['testfunc'] = lambda x, y: x + e.proc['testfunc'] = lambda json, eventrouter, team, channel, metadata: json e.receive({"type": "testfunc"}) e.handle_next() assert len(e.queue) == 0 @@ -21,7 +21,7 @@ def test_EventRouter(mock_weechat): # Handling a local event removes from the queue. e = EventRouter() # Create a function to test we are called - e.proc['local_testfunc'] = lambda x, y: x + e.proc['local_testfunc'] = lambda json, eventrouter, team, channel, metadata: json e.receive({"type": "local_testfunc"}) e.handle_next() assert len(e.queue) == 0 |