Mercurial > libervia-backend
diff src/test/test_plugin_misc_groupblog.py @ 1910:55440ee00905
test: update some tests
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 11 Mar 2016 17:42:56 +0100 |
parents | d17772b0fe22 |
children | 2daf7b4c6756 |
line wrap: on
line diff
--- a/src/test/test_plugin_misc_groupblog.py Fri Mar 11 16:41:44 2016 +0100 +++ b/src/test/test_plugin_misc_groupblog.py Fri Mar 11 17:42:56 2016 +0100 @@ -136,12 +136,13 @@ def setUp(self): self.host = helpers.FakeSAT() + self.host.plugins['XEP-0060'] = plugin_xep_0060.XEP_0060(self.host) + self.host.plugins['XEP-0163'] = plugin_xep_0163.XEP_0163(self.host) + reload(plugin_misc_text_syntaxes) # reload the plugin to avoid conflict error + self.host.plugins['TEXT-SYNTAXES'] = plugin_misc_text_syntaxes.TextSyntaxes(self.host) + self.host.plugins['XEP-0277'] = plugin_xep_0277.XEP_0277(self.host) self.plugin = plugin_misc_groupblog.GroupBlog(self.host) self.plugin._initialise = self._initialise - self.host.plugins['XEP-0060'] = plugin_xep_0060.XEP_0060(self.host) - self.host.plugins['XEP-0163'] = plugin_xep_0163.XEP_0163(self.host) - self.host.plugins['TEXT-SYNTAXES'] = plugin_misc_text_syntaxes.TextSyntaxes(self.host) - self.host.plugins['XEP-0277'] = plugin_xep_0277.XEP_0277(self.host) self.__initialised = False self._initialise(C.PROFILE[0])