Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2017-08-09 16:34:58 +0300
committerYann Leboulanger <asterix@lagaule.org>2017-08-09 22:05:45 +0300
commitb5c3b15c0fa717bbe042c5e0a1233615f3a25b2f (patch)
tree5cc0c7e422bb0d61000a9ad19a79c28a5e8efa30 /test/lib
parentc57af6dade707439d6c87ddbf1502b89c32a7d0a (diff)
Fix running tests
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/__init__.py2
-rw-r--r--test/lib/gajim_mocks.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/test/lib/__init__.py b/test/lib/__init__.py
index 803472b12..afae96164 100644
--- a/test/lib/__init__.py
+++ b/test/lib/__init__.py
@@ -50,3 +50,5 @@ def setup_env():
if use_x:
import gtkgui_helpers
gtkgui_helpers.GUI_DIR = gajim_root + '/data/gui'
+ from gajim import GajimApplication
+ gajim.app = GajimApplication()
diff --git a/test/lib/gajim_mocks.py b/test/lib/gajim_mocks.py
index 1d1cb3bd6..d0a5d058c 100644
--- a/test/lib/gajim_mocks.py
+++ b/test/lib/gajim_mocks.py
@@ -107,6 +107,8 @@ class MockInterface(Mock):
self.msg_win_mgr = Mock()
self.roster = Mock()
gajim.ged = ged.GlobalEventsDispatcher()
+ import plugins
+ gajim.plugin_manager = plugins.PluginManager()
self.remote_ctrl = None
self.instances = {}
@@ -126,7 +128,8 @@ class MockInterface(Mock):
class MockLogger(Mock):
def __init__(self):
- Mock.__init__(self, {'write': None, 'get_transports_type': {}})
+ Mock.__init__(self, {'insert_into_logs': None,
+ 'get_transports_type': {}})
self.cur = Mock()