From bc6068cdd807e9c43eb2857424e7dafb71152e06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= <git@apitzsch.eu>
Date: Sat, 17 Nov 2018 11:19:16 +0100
Subject: [PATCH] Test: Fix KeyError

The added account causes an issue with test_gui_interface,
so the account needs to be removed again
---
 test/no_gui/unit/test_protocol_caps.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/no_gui/unit/test_protocol_caps.py b/test/no_gui/unit/test_protocol_caps.py
index e3e0bbece0..eef096a43d 100644
--- a/test/no_gui/unit/test_protocol_caps.py
+++ b/test/no_gui/unit/test_protocol_caps.py
@@ -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),
-- 
GitLab