Skip to content

Commit

Permalink
missed a condition where possible errors would be printed even if the…
Browse files Browse the repository at this point in the history
…re were no errors
  • Loading branch information
kailashnath committed Nov 21, 2011
1 parent fc3a6a3 commit 635bb09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions prodready/management/commands/is_it_ready.py
Expand Up @@ -16,9 +16,11 @@ def __init__(self, *args, **kwargs):
def write_result(self):
print 'Passed: %d, Failed: %d' % (len(self.passed_tests),
len(self.failed_tests))
print 'Possible errors:'
for test in self.failed_tests:
print '*', test.__doc__
if self.failed_tests:
print 'Possible errors:'
for test in self.failed_tests:
print '*', test.__doc__

print '-' * 20
print 'Production ready: %s' % \
('No' if self.failed_tests else 'Yes')
Expand Down

0 comments on commit 635bb09

Please sign in to comment.