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