Browse files

made default_templates more testable

  • Loading branch information...
1 parent 3b8f9c6 commit a394db1bbd95333502f6438ddf199a11f8df681a @kailashnath committed Nov 26, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 prodready/management/commands/is_it_ready.py
View
5 prodready/management/commands/is_it_ready.py
@@ -76,11 +76,10 @@ def check_email(self):
return messages
- def check_default_templates(self):
- default_templates = ['404.html', '500.html']
+ def check_default_templates(self, templates=['404.html', '500.html']):
messages = []
- for name in default_templates:
+ for name in templates:
if not self.has_template(name, settings.TEMPLATE_DIRS):
messages.append('Template %s does not exist' % name)

0 comments on commit a394db1

Please sign in to comment.