mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix some test failures
This commit is contained in:
parent
6ef2bbcc77
commit
0d954c9354
@ -62,9 +62,9 @@ if sqlite is not None:
|
||||
# Test case-insensitive
|
||||
self.assertNoResponse('MOO++', 2)
|
||||
self.assertRegexp('karma moo',
|
||||
'Karma for \'moo\'.*increased 1.*total.*1')
|
||||
'Karma for [\'"]moo[\'"].*increased 1.*total.*1')
|
||||
self.assertRegexp('karma MoO',
|
||||
'Karma for \'MoO\'.*increased 1.*total.*1')
|
||||
'Karma for [\'"]MoO[\'"].*increased 1.*total.*1')
|
||||
|
||||
def testKarmaRankingDisplayConfigurable(self):
|
||||
try:
|
||||
@ -141,7 +141,7 @@ if sqlite is not None:
|
||||
conf.supybot.plugins.Karma.allowSelfRating.setValue(True)
|
||||
self.assertNoResponse('%s++' % nick, 2)
|
||||
self.assertRegexp('karma %s' % nick,
|
||||
'Karma for \'%s\'.*increased 1.*total.*1' % nick)
|
||||
'Karma for [\'"]%s[\'"].*increased 1.*total.*1' % nick)
|
||||
finally:
|
||||
conf.supybot.plugins.Karma.allowSelfRating.setValue(orig)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user