Skip to content

Commit

Permalink
Added missing coroutine import
Browse files Browse the repository at this point in the history
Thanks to Cody Scott for noticing.
  • Loading branch information
agronholm committed Sep 5, 2015
1 parent 6415d0f commit 4c5b98f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions asphalt/core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def quickstart_application():

with (top_package / 'application.py').open('w') as f:
f.write("""\
from asyncio import coroutine
from {app_cls.__module__} import {app_cls.__name__}
from {context_cls.__module__} import {context_cls.__name__}
Expand Down
2 changes: 2 additions & 0 deletions tests/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def mock_input(text):
# Check that example/application.py was properly generated
with projectdir.join('example').join('application.py').open() as f:
assert f.read() == """\
from asyncio import coroutine
from asphalt.core.application import Application
from asphalt.core.context import ApplicationContext
Expand Down

0 comments on commit 4c5b98f

Please sign in to comment.