Commit 308ee163 authored by Clément Schreiner's avatar Clément Schreiner
Browse files

Small change to the result's string.

parent 95e8a814
......@@ -68,7 +68,8 @@ class ClosedbugsTest(PluginResult):
return d
def __str__(self):
if self.closes_wnpp:
if (self.closes_wnpp and self.nb_closed == 1 and
self.nb_errors == 0):
return 'Package closes a WNPP bug'
strings = []
......@@ -77,10 +78,10 @@ class ClosedbugsTest(PluginResult):
plural='s' if self.nb_closed > 1 else ''))
if self.nb_errors:
strings.append('claims to be closing {} bug{plural}'.format(
strings.append('wrongfully claims to be closing {} bug{plural}'.format(
self.nb_errors,
plural='s' if self.nb_closed > 1 else ''))
return 'Package ' + ' but '.join(strings)
return 'Package ' + ' and '.join(strings)
class ClosedBug(PluginResult):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment