Parse config plugins on test
This commit is contained in:
parent
61c846c6ed
commit
d222018bb6
1 changed files with 8 additions and 4 deletions
|
@ -24,14 +24,18 @@ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + "/..")) # Import
|
|||
|
||||
from Config import config
|
||||
config.argv = ["none"] # Dont pass any argv to config parser
|
||||
config.parse()
|
||||
config.data_dir = "src/Test/testdata" # Use test data for unittests
|
||||
config.debug_socket = True # Use test data for unittests
|
||||
config.tor = "disabled" # Don't start Tor client
|
||||
config.parse() # Plugins need to access the configuration
|
||||
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
|
||||
|
||||
from Plugin import PluginManager
|
||||
PluginManager.plugin_manager.loadPlugins()
|
||||
config.loadPlugins()
|
||||
config.parse() # Parse again to add plugin configuration options
|
||||
|
||||
config.data_dir = "src/Test/testdata" # Use test data for unittests
|
||||
config.debug_socket = True # Use test data for unittests
|
||||
config.tor = "disabled" # Don't start Tor client
|
||||
|
||||
|
||||
import gevent
|
||||
from gevent import monkey
|
||||
|
|
Loading…
Reference in a new issue