mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Fixed failing tests.
This commit is contained in:
parent
1a62fed0b6
commit
c68a8015a0
@ -279,6 +279,7 @@ class WordStats(callbacks.Privmsg):
|
||||
try:
|
||||
L = ['%r: %s' % (word, count)
|
||||
for (word,count) in self.db.getUserWordCounts(channel,id)]
|
||||
L.sort()
|
||||
irc.reply(utils.commaAndify(L))
|
||||
except KeyError:
|
||||
irc.reply('I have no word stats for that person.')
|
||||
|
@ -55,8 +55,8 @@ if sqlite is not None:
|
||||
self.assertResponse('wordstats', 'I am not currently keeping any '
|
||||
'word stats.')
|
||||
self.assertNotError('add lol')
|
||||
self.assertResponse('wordstats', 'Currently keeping stats for: '
|
||||
'\'lol\'')
|
||||
self.assertResponse('wordstats',
|
||||
'I am currently keeping stats for lol.')
|
||||
|
||||
def testWordStatsUser(self):
|
||||
self.assertNotError('add lol')
|
||||
|
Loading…
Reference in New Issue
Block a user