mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 15:47:25 +01:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									514ddbc74f
								
							
						
					
					
						commit
						48a5f2a4a9
					
				| @ -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]) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Vega
						James Vega