diff --git a/test/test.py b/test/test.py index 9720e5545..a9a8dccc2 100755 --- a/test/test.py +++ b/test/test.py @@ -117,6 +117,7 @@ class PluginTestCase(unittest.TestCase): os.remove(os.path.join(conf.confDir, filename)) for filename in os.listdir(conf.dataDir): os.remove(os.path.join(conf.dataDir, filename)) + debug.reset() ircdb.users.reload() ircdb.channels.reload() if not self.plugins: diff --git a/test/test_MiscCommands.py b/test/test_MiscCommands.py index 8a0378b9a..325174f90 100644 --- a/test/test_MiscCommands.py +++ b/test/test_MiscCommands.py @@ -32,7 +32,8 @@ from test import * class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation): - plugins = ('MiscCommands', 'Utilities', 'ChannelDB', 'Ctcp') + plugins = ('MiscCommands', 'OwnerCommands', + 'Utilities', 'ChannelDB', 'Ctcp') def testReplyWhenNotCommand(self): try: conf.replyWhenNotCommand = True @@ -92,6 +93,9 @@ class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation): self.assertNotError('source') def testLogfilesize(self): + self.feedMsg('foo bar baz') + self.feedMsg('bar baz quux') + self.assertNotError('upkeep') self.assertNotError('logfilesize') def testGetprefixchar(self):