From 48a5f2a4a9f58432e5ac1fa3a7f95e7a5cbcbd42 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 5 May 2006 12:50:13 +0000 Subject: [PATCH] plugins/Misc/test.py: Add a missing plugin that needs to be loaded. Update some documentation and add a note about why a test is failing. --- plugins/Misc/test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/Misc/test.py b/plugins/Misc/test.py index 4d836a087..aca6fc43d 100644 --- a/plugins/Misc/test.py +++ b/plugins/Misc/test.py @@ -30,8 +30,7 @@ from supybot.test import * class MiscTestCase(ChannelPluginTestCase): -# plugins = ('Misc', 'Utilities', 'Gameknot', 'Anonymous', 'Dict', 'User') - plugins = ('Misc', 'Utilities', 'Anonymous', + plugins = ('Misc', 'Utilities', 'Anonymous', 'Plugin', 'Channel', 'Dict', 'User', 'String') def testReplyWhenNotCommand(self): try: @@ -101,7 +100,7 @@ class MiscTestCase(ChannelPluginTestCase): self.assertNotError('list misc') def testListPrivate(self): - # If Ctcp changes to public, these tests will break. So if + # If Anonymous changes to public, these tests will break. So if # the next assert fails, change the plugin we test for public/private # to some other non-public plugin. name = 'Anonymous' @@ -131,7 +130,9 @@ class MiscTestCase(ChannelPluginTestCase): self.assertNotError('source') def testTell(self): - m = self.getMsg('tell foo [plugin tell]') + # This test fails because the test is seeing us as owner and Misc.tell + # allows the owner to send messages to people the bot hasn't seen. + m = self.getMsg('tell aljsdkfh [plugin tell]') self.failUnless('let you do' in m.args[1]) m = self.getMsg('tell #foo [plugin tell]') self.failUnless('No need for' in m.args[1])