mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Changed tests to be more independent of outside plugins.
This commit is contained in:
parent
863c0e6ad2
commit
badec534df
@ -33,7 +33,7 @@ import supybot.conf as conf
|
|||||||
import supybot.plugin as plugin
|
import supybot.plugin as plugin
|
||||||
|
|
||||||
class OwnerTestCase(PluginTestCase):
|
class OwnerTestCase(PluginTestCase):
|
||||||
plugins = ('Utilities', 'Relay', 'Network', 'Admin', 'Channel')
|
plugins = ('Owner', 'Config', 'Misc') # Defaults, but hey, I'm cool.
|
||||||
def testHelpLog(self):
|
def testHelpLog(self):
|
||||||
self.assertHelp('help log')
|
self.assertHelp('help log')
|
||||||
|
|
||||||
@ -52,22 +52,22 @@ class OwnerTestCase(PluginTestCase):
|
|||||||
def testLoad(self):
|
def testLoad(self):
|
||||||
self.assertError('load Owner')
|
self.assertError('load Owner')
|
||||||
self.assertError('load owner')
|
self.assertError('load owner')
|
||||||
self.assertNotError('load Alias')
|
self.assertNotError('load Channel')
|
||||||
self.assertNotError('list Owner')
|
self.assertNotError('list Owner')
|
||||||
|
|
||||||
def testReload(self):
|
def testReload(self):
|
||||||
self.assertError('reload Alias')
|
self.assertError('reload Channel')
|
||||||
self.assertNotError('load Alias')
|
self.assertNotError('load Channel')
|
||||||
self.assertNotError('reload ALIAS')
|
self.assertNotError('reload Channel')
|
||||||
self.assertNotError('reload ALIAS')
|
self.assertNotError('reload Channel')
|
||||||
|
|
||||||
def testUnload(self):
|
def testUnload(self):
|
||||||
self.assertError('unload Foobar')
|
self.assertError('unload Foobar')
|
||||||
self.assertNotError('load Alias')
|
self.assertNotError('load Channel')
|
||||||
self.assertNotError('unload Alias')
|
self.assertNotError('unload Channel')
|
||||||
self.assertError('unload Alias')
|
self.assertError('unload Channel')
|
||||||
self.assertNotError('load ALIAS')
|
self.assertNotError('load CHANNEL')
|
||||||
self.assertNotError('unload ALIAS')
|
self.assertNotError('unload CHANNEL')
|
||||||
|
|
||||||
def testDisable(self):
|
def testDisable(self):
|
||||||
self.assertError('disable enable')
|
self.assertError('disable enable')
|
||||||
|
Loading…
Reference in New Issue
Block a user