mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Fixed bug in test suite.
This commit is contained in:
parent
8e45f35946
commit
375789218a
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
from test import *
|
from test import *
|
||||||
|
|
||||||
|
import ircdb
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import sqlite
|
import sqlite
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -64,8 +66,12 @@ if sqlite is not None:
|
|||||||
self.assertError('channeldb stats %s' % self.irc.nick)
|
self.assertError('channeldb stats %s' % self.irc.nick)
|
||||||
self.assertNotError('channeldb stats %s' % self.irc.nick)
|
self.assertNotError('channeldb stats %s' % self.irc.nick)
|
||||||
self.assertNotError('channeldb stats %s' % self.irc.nick)
|
self.assertNotError('channeldb stats %s' % self.irc.nick)
|
||||||
m1 = self.getMsg('channeldb stats %s' % self.irc.nick)
|
id = ircdb.users.getUserId(self.prefix)
|
||||||
|
u = ircdb.users.getUser(id)
|
||||||
|
u.addCapability(ircdb.makeChannelCapability(self.channel, 'op'))
|
||||||
|
ircdb.users.setUser(id, u)
|
||||||
self.assertNotError('channeldb toggle selfstats off')
|
self.assertNotError('channeldb toggle selfstats off')
|
||||||
|
m1 = self.getMsg('channeldb stats %s' % self.irc.nick)
|
||||||
m2 = self.getMsg('channeldb stats %s' % self.irc.nick)
|
m2 = self.getMsg('channeldb stats %s' % self.irc.nick)
|
||||||
self.assertEqual(m1.args[1], m2.args[1])
|
self.assertEqual(m1.args[1], m2.args[1])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user