mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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
|
return
|
||||||
irc.reply(self._getTrackerList(url))
|
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)
|
_totbugs = re.compile(r'Bugs</a>\s+?\( <b>([^<]+)</b>', re.S | re.I)
|
||||||
def totalbugs(self, irc, msg, args):
|
def totalbugs(self, irc, msg, args):
|
||||||
"""[<project>]
|
"""[<project>]
|
||||||
|
@ -183,5 +183,10 @@ if network:
|
|||||||
self.assertNoResponse('https://sourceforge.net/tracker/?'
|
self.assertNoResponse('https://sourceforge.net/tracker/?'
|
||||||
'group_id=58965&atid=489447')
|
'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:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user