plugin text syntaxes: changed import name to TEXT_SYNTAX (better with underscore for autocompletion)

This commit is contained in:
Goffi 2019-01-19 11:39:02 +01:00
commit f1c0eca9ab
2 changed files with 18 additions and 18 deletions

View file

@ -155,7 +155,7 @@ class XEP_groupblogTest(helpers.SatTestCase):
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.plugins["TEXT_SYNTAXES"] = plugin_misc_text_syntaxes.TextSyntaxes(
self.host
)
self.host.plugins["XEP-0277"] = plugin_xep_0277.XEP_0277(self.host)

View file

@ -82,7 +82,7 @@ class XEP_0277Test(helpers.SatTestCase):
self.host.plugins["XEP-0060"] = plugin_xep_0060.XEP_0060(self.host)
self.host.plugins["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.plugins["TEXT_SYNTAXES"] = plugin_misc_text_syntaxes.TextSyntaxes(
self.host
)
self.plugin = plugin_xep_0277.XEP_0277(self.host)