def test(self):
     from sideboard.internal.imports import _discover_plugins
     plugin_dir = os.path.join(__plugin_container__, 'not_installed')
     with self.assertRaises(self.SideboardImportError) as cm:
         _discover_plugins(plugin_dir)
     self.assertEqual(str(cm.exception), 'plugin module foo not loaded; '
                             'did you forget to run `setup.py develop`?')
Exemple #2
0
from __future__ import unicode_literals
import os
import importlib

import six
import cherrypy

from sideboard._version import __version__
import sideboard.server

from sideboard.internal.imports import _discover_plugins
from sideboard.internal.logging import _configure_logging
import sideboard.run_mainloop

if 'SIDEBOARD_MODULE_TESTING' not in os.environ:
    _discover_plugins()
    _configure_logging()