mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Added a try/finally block. The snarfer test still needs one added.
This commit is contained in:
parent
ea2f4a55ca
commit
915d4674e3
@ -85,7 +85,7 @@ if network:
|
|||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('rfe --open gaim %s' % n)
|
self.assertNotError('rfe --open gaim %s' % n)
|
||||||
|
|
||||||
'''
|
"""
|
||||||
Just assume pending works since we're not 99% guaranteed to have a
|
Just assume pending works since we're not 99% guaranteed to have a
|
||||||
project that has pending bugs/rfes like we do with the others.
|
project that has pending bugs/rfes like we do with the others.
|
||||||
def testPending(self):
|
def testPending(self):
|
||||||
@ -97,7 +97,7 @@ if network:
|
|||||||
self.failUnless(m, 'No response from Sourceforge.')
|
self.failUnless(m, 'No response from Sourceforge.')
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('rfe --pending gaim %s' % n)
|
self.assertNotError('rfe --pending gaim %s' % n)
|
||||||
'''
|
"""
|
||||||
|
|
||||||
def testBugs(self):
|
def testBugs(self):
|
||||||
self.assertHelp('bugs')
|
self.assertHelp('bugs')
|
||||||
@ -127,14 +127,17 @@ if network:
|
|||||||
|
|
||||||
def testDefaultproject(self):
|
def testDefaultproject(self):
|
||||||
self.assertHelp('bugs')
|
self.assertHelp('bugs')
|
||||||
conf.supybot.plugins.Sourceforge.project.set('supybot')
|
try:
|
||||||
self.assertNotError('bugs')
|
original = conf.supybot.plugins.Sourceforge.project()
|
||||||
m = self.getMsg('bugs')
|
conf.supybot.plugins.Sourceforge.project.set('supybot')
|
||||||
n = re.search('#(\d+)', m.args[1]).group(1)
|
self.assertNotError('bugs')
|
||||||
self.assertNotError('bug supybot %s' % n)
|
m = self.getMsg('bugs')
|
||||||
# This should have the same effect as calling 'bug supybot %s'
|
n = re.search('#(\d+)', m.args[1]).group(1)
|
||||||
self.assertNotError('bug %s' % n)
|
self.assertNotError('bug supybot %s' % n)
|
||||||
conf.supybot.plugins.Sourceforge.project.set('')
|
# This should have the same effect as calling 'bug supybot %s'
|
||||||
|
self.assertNotError('bug %s' % n)
|
||||||
|
finally:
|
||||||
|
conf.supybot.plugins.Sourceforge.project.set(original)
|
||||||
|
|
||||||
def testSnarfer(self):
|
def testSnarfer(self):
|
||||||
s = r'.*Status.*: \w+'
|
s = r'.*Status.*: \w+'
|
||||||
|
Loading…
Reference in New Issue
Block a user