Skip to content

Commit

Permalink
[#2578] Actually add templates properly for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 30, 2012
1 parent 050020e commit ea8925d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/config/environment.py
Expand Up @@ -193,7 +193,8 @@ def find_controller(self, controller):
template_paths = [legacy_templates_path]
# if we are testing allow new templates
if asbool(config.get('ckan.enable_testing', 'false')):
template_paths = [paths['templates'][0]]
jinja2_templates_path = os.path.join(root, 'templates')
template_paths.append(jinja2_templates_path)
else:
template_paths = [paths['templates'][0]]
template_paths.append(legacy_templates_path)
Expand Down

0 comments on commit ea8925d

Please sign in to comment.