Test: Fix KeyError
The added account causes an issue with test_gui_interface, so the account needs to be removed again
This commit is contained in:
		
							parent
							
								
									fb5cee69cb
								
							
						
					
					
						commit
						5c0ff1de9f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -31,6 +31,9 @@ class TestConnectionCaps(unittest.TestCase):
 | 
				
			||||||
        self.module._account = 'account'
 | 
					        self.module._account = 'account'
 | 
				
			||||||
        self.module._capscache = MagicMock()
 | 
					        self.module._capscache = MagicMock()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    def tearDown(self):
 | 
				
			||||||
 | 
					        app.contacts.remove_account('account')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _nec_caps_presence_received(self, obj):
 | 
					    def _nec_caps_presence_received(self, obj):
 | 
				
			||||||
        self.assertTrue(
 | 
					        self.assertTrue(
 | 
				
			||||||
            isinstance(obj.client_caps, caps_cache.ClientCaps),
 | 
					            isinstance(obj.client_caps, caps_cache.ClientCaps),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue