mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Add some tests for Sf.todo* and make a little TODO for anyone that's
interested/me to remember
This commit is contained in:
parent
c801aa9c46
commit
2963fd352d
@ -219,6 +219,8 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
|
||||
return
|
||||
irc.reply(self._getTrackerList(url))
|
||||
|
||||
# TODO: consolidate total* into one command which takes options for all
|
||||
# the viable statistics that can be snarfed from the project page
|
||||
_totbugs = re.compile(r'Bugs</a>\s+?\( <b>([^<]+)</b>', re.S | re.I)
|
||||
def totalbugs(self, irc, msg, args):
|
||||
"""[<project>]
|
||||
|
@ -183,5 +183,10 @@ if network:
|
||||
self.assertNoResponse('https://sourceforge.net/tracker/?'
|
||||
'group_id=58965&atid=489447')
|
||||
|
||||
def testTotal(self):
|
||||
self.assertRegexp('totalbugs gaim', r'\d+ open / \d+ total')
|
||||
self.assertRegexp('totalrfes gaim', r'\d+ open / \d+ total')
|
||||
self.assertError('totalbugs lkjfad')
|
||||
self.assertError('totalrfes lkjfad')
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user