File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1111from time import sleep
1212
1313from qiita_client import QiitaClient
14+ from plugin import BaseQiitaPlugin
1415
1516import logging
1617
@@ -36,6 +37,14 @@ def setUpClass(cls):
3637 logger .debug (
3738 'PluginTestCase.setUpClass() token %s' % cls .qclient ._token )
3839 cls .qclient .post ('/apitest/reload_plugins/' )
40+
41+ # When testing, we access plugin functions often directly. Plugin
42+ # configuration files are not parsed in these cases. To be able to
43+ # change the plugin coupling protocol, we resort to the environment
44+ # variable here.
45+ cls .qclient ._plugincoupling = environ .get (
46+ 'QIITA_PLUGINCOUPLING' , BaseQiitaPlugin ._DEFAULT_PLUGIN_COUPLINGS )
47+
3948 # Give enough time for the plugins to register
4049 sleep (5 )
4150
You can’t perform that action at this time.
0 commit comments