mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +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
|
# Test case-insensitive
|
||||||
self.assertNoResponse('MOO++', 2)
|
self.assertNoResponse('MOO++', 2)
|
||||||
self.assertRegexp('karma moo',
|
self.assertRegexp('karma moo',
|
||||||
'Karma for \'moo\'.*increased 1.*total.*1')
|
'Karma for [\'"]moo[\'"].*increased 1.*total.*1')
|
||||||
self.assertRegexp('karma MoO',
|
self.assertRegexp('karma MoO',
|
||||||
'Karma for \'MoO\'.*increased 1.*total.*1')
|
'Karma for [\'"]MoO[\'"].*increased 1.*total.*1')
|
||||||
|
|
||||||
def testKarmaRankingDisplayConfigurable(self):
|
def testKarmaRankingDisplayConfigurable(self):
|
||||||
try:
|
try:
|
||||||
@ -141,7 +141,7 @@ if sqlite is not None:
|
|||||||
conf.supybot.plugins.Karma.allowSelfRating.setValue(True)
|
conf.supybot.plugins.Karma.allowSelfRating.setValue(True)
|
||||||
self.assertNoResponse('%s++' % nick, 2)
|
self.assertNoResponse('%s++' % nick, 2)
|
||||||
self.assertRegexp('karma %s' % nick,
|
self.assertRegexp('karma %s' % nick,
|
||||||
'Karma for \'%s\'.*increased 1.*total.*1' % nick)
|
'Karma for [\'"]%s[\'"].*increased 1.*total.*1' % nick)
|
||||||
finally:
|
finally:
|
||||||
conf.supybot.plugins.Karma.allowSelfRating.setValue(orig)
|
conf.supybot.plugins.Karma.allowSelfRating.setValue(orig)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user