Skip to content

Commit

Permalink
100& coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Sep 20, 2018
1 parent eea6277 commit 667cad1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nanohttp/tests/test_quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ def index(self):
assert response.status_code == 200
assert response.text == 'Index'


def test_quickstart_with_controller(run_quickstart):
class Root(Controller):
@action
def index(self):
yield f'Index'

url = run_quickstart(Root())
response = requests.get(url)
assert response.status_code == 200
assert response.text == 'Index'

0 comments on commit 667cad1

Please sign in to comment.