Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 6d123a9977db9e26eb5caccbf64f7ec2814e7b55 1 parent 07225b4
@specialunderwear specialunderwear authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 tests/session_test.py
View
10 tests/session_test.py
@@ -76,9 +76,13 @@ def on_message(self, message):
self.incoming.append(message)
self.send(message)
- def on_event(self, name, *args, **kwargs):
- self.events.append((name, kwargs))
- self.emit(name, **kwargs)
+ def on_event(self, name, args=[], kwargs=dict()):
+ if args:
+ self.events.append((name, args))
+ self.emit(name, *args)
+ else:
+ self.events.append((name, kwargs))
+ self.emit(name, **kwargs)
return name
def on_close(self):
Please sign in to comment.
Something went wrong with that request. Please try again.