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:
André Apitzsch 2018-11-17 11:19:16 +01:00 committed by Philipp Hörist
parent 3e8b12a533
commit bc6068cdd8
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ class TestConnectionCaps(unittest.TestCase):
self.module._account = 'account'
self.module._capscache = MagicMock()
def tearDown(self):
app.contacts.remove_account('account')
def _nec_caps_presence_received(self, obj):
self.assertTrue(
isinstance(obj.client_caps, caps_cache.ClientCaps),