def test_run_hooks(): plugin_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plugins') load_plugins([plugin_dir]) call_trigger('before_dispatch', 1, 2) ok_(1)
def test_load_plugins(): plugin_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'plugins') plugins = load_plugins([plugin_dir]) ok_(len(plugins) == 2)