Skip to content

Instantly share code, notes, and snippets.

@georgeyk
Last active August 30, 2017 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgeyk/01eb8d6ade2f08c8527b3e42b65c9b99 to your computer and use it in GitHub Desktop.
Save georgeyk/01eb8d6ade2f08c8527b3e42b65c9b99 to your computer and use it in GitHub Desktop.
import asyncio
from .handlers import FoobarFriendCreatedHandler
loop = asyncio.get_event_loop()
handler = FoobarFriendCreatedHandler()
message = {'invalid': 'message'}
loop.run_until_complete(handler.handle(message))
loop.close()
# Execute: python -m foobar_friend_service.manual_run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment