mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-21 08:01:00 +01:00
Added testTestIrc.
This commit is contained in:
parent
edc1e70648
commit
a12d65160e
@ -99,6 +99,12 @@ def cachingGetHelp(method, name=None):
|
|||||||
return lastGetHelp
|
return lastGetHelp
|
||||||
callbacks.getHelp = cachingGetHelp
|
callbacks.getHelp = cachingGetHelp
|
||||||
|
|
||||||
|
def getTestIrc():
|
||||||
|
irc = irclib.Irc('test')
|
||||||
|
while irc.takeMsg():
|
||||||
|
pass
|
||||||
|
return irc
|
||||||
|
|
||||||
class TimeoutError(AssertionError):
|
class TimeoutError(AssertionError):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '%r timed out' % self.args[0]
|
return '%r timed out' % self.args[0]
|
||||||
@ -161,10 +167,7 @@ class PluginTestCase(SupyTestCase):
|
|||||||
raise ValueError, 'PluginTestCase must have a "plugins" attribute.'
|
raise ValueError, 'PluginTestCase must have a "plugins" attribute.'
|
||||||
self.nick = nick
|
self.nick = nick
|
||||||
self.prefix = ircutils.joinHostmask(nick, 'user', 'host.domain.tld')
|
self.prefix = ircutils.joinHostmask(nick, 'user', 'host.domain.tld')
|
||||||
self.irc = irclib.Irc('test')
|
self.irc = getTestIrc()
|
||||||
while self.irc.takeMsg():
|
|
||||||
pass
|
|
||||||
#OwnerModule = Owner.loadPluginModule('Owner')
|
|
||||||
MiscModule = Owner.loadPluginModule('Misc')
|
MiscModule = Owner.loadPluginModule('Misc')
|
||||||
ConfigModule = Owner.loadPluginModule('Config')
|
ConfigModule = Owner.loadPluginModule('Config')
|
||||||
_ = Owner.loadPluginClass(self.irc, Owner)
|
_ = Owner.loadPluginClass(self.irc, Owner)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user