Skip to content
Browse files

fixes session unit tests.

in #637619d6 the signature of on_event was changed but the DummyConnection's
signature was left as was. This caused the unit tests to fail.

Updated DummyConnection on_event signature.
  • Loading branch information...
1 parent 07225b4 commit 6d123a9977db9e26eb5caccbf64f7ec2814e7b55 @specialunderwear specialunderwear committed
Showing with 7 additions and 3 deletions.
  1. +7 −3 tests/
10 tests/
@@ -76,9 +76,13 @@ def on_message(self, message):
- def on_event(self, name, *args, **kwargs):
-, kwargs))
- self.emit(name, **kwargs)
+ def on_event(self, name, args=[], kwargs=dict()):
+ if args:
+, args))
+ self.emit(name, *args)
+ else:
+, kwargs))
+ self.emit(name, **kwargs)
return name
def on_close(self):

0 comments on commit 6d123a9

Please sign in to comment.
Something went wrong with that request. Please try again.