mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Bold was messing up the bug# regexp.
This commit is contained in:
parent
e1d961c62f
commit
ecaceff723
@ -38,44 +38,61 @@ Sf = conf.supybot.plugins.Sourceforge
|
|||||||
|
|
||||||
class SourceforgeTest(ChannelPluginTestCase):
|
class SourceforgeTest(ChannelPluginTestCase):
|
||||||
plugins = ('Sourceforge',)
|
plugins = ('Sourceforge',)
|
||||||
|
config = {'supybot.plugins.Sourceforge.bold': False}
|
||||||
if network:
|
if network:
|
||||||
def testAny(self):
|
def testAny(self):
|
||||||
m = self.getMsg('bugs --any gaim')
|
m = self.getMsg('bugs --any gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
m = self.getMsg('rfes --any gaim')
|
m = self.getMsg('rfes --any gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
|
|
||||||
def testClosed(self):
|
def testClosed(self):
|
||||||
m = self.getMsg('bugs --closed gaim')
|
m = self.getMsg('bugs --closed gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
m = self.getMsg('patches --closed gaim')
|
m = self.getMsg('patches --closed gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
|
|
||||||
def testDeleted(self):
|
def testDeleted(self):
|
||||||
m = self.getMsg('bugs --deleted gaim')
|
m = self.getMsg('bugs --deleted gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
m = self.getMsg('rfes --deleted gaim')
|
m = self.getMsg('rfes --deleted gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
|
|
||||||
def testOpen(self):
|
def testOpen(self):
|
||||||
m = self.getMsg('bugs --open gaim')
|
m = self.getMsg('bugs --open gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
m = self.getMsg('rfes --open gaim')
|
m = self.getMsg('rfes --open gaim')
|
||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
|
match = re.search(r'#(\d+)', m.args[1])
|
||||||
|
self.failUnless(match, 'no bug # found: %r' % m.args[1])
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('tracker %s' % n)
|
self.assertNotError('tracker %s' % n)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user