Skip to content

Commit

Permalink
Fix sessions test with correct templates path.
Browse files Browse the repository at this point in the history
Point Blueprint templates path to core templates directory.
  • Loading branch information
brew committed Jun 7, 2016
1 parent 9f07da4 commit dbbf803
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ckan/tests/config/test_sessions.py
Expand Up @@ -58,11 +58,12 @@ def test_flash_populated_in_flask_view_redirect_to_pylons(self):

class FlashMessagePlugin(p.SingletonPlugin):
'''
A Flask and Pylons compatible IRoutes plugin to add Flask views and Pylons
actions to display flash messages.
A Flask and Pylons compatible IRoutes/IBlueprint plugin to add Flask views
and Pylons actions to display flash messages.
'''

p.implements(p.IRoutes, inherit=True)
p.implements(p.IBlueprint)

def flash_message_view(self):
'''Flask view that renders the flash message html template.'''
Expand All @@ -83,7 +84,7 @@ def get_blueprint(self):

# Create Blueprint for plugin
blueprint = Blueprint(self.name, self.__module__)
blueprint.template_folder = 'templates'
blueprint.template_folder = '../../templates'
# Add plugin url rules to Blueprint object
rules = [
('/flask_add_flash_message_redirect_to_flask', 'add_flash_message',
Expand Down

0 comments on commit dbbf803

Please sign in to comment.