Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Jul 26, 2019
1 parent 21402fe commit f991296
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ckan/tests/config/test_middleware.py
Expand Up @@ -106,10 +106,17 @@ def test_view():
return 'This was served from Flask'

# This endpoint is defined both in Flask and in Pylons core
flask_app.add_url_rule('/flask_core', view_func=test_view)
flask_app.add_url_rule(
'/flask_core',
view_func=test_view,
endpoint='flask_core.index')

# This endpoint is defined both in Flask and a Pylons extension
flask_app.add_url_rule('/pylons_and_flask', view_func=test_view)
flask_app.add_url_rule(
'/pylons_and_flask',
view_func=test_view,
endpoint='pylons_and_flask.index'
)

def test_ask_around_is_called(self):

Expand Down

0 comments on commit f991296

Please sign in to comment.