~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 5086.5.8.

Make sure we can load from a non-standard directory name.

* bzrlib/tests/test_plugins.py:
(TestPluginMixin.create_plugin): Add a doc string and a variable.
(TestPluginMixin.create_plugin_package): Leave callers decide the
directory name.
(TestLoadPluginAt.setUp): Use a non-standard directory name to
ensure we can work around python limitations.
(TestLoadPluginAt.assertTestFooLoadedFrom): Add more specific
checks.
(TestLoadPluginAt.test_regular_load,
TestLoadPluginAt.test_import): Use a non-standard directory name.
(TestLoadPluginAt.test_loading): Check that the specific plugins
are loaded automatically.

* bzrlib/plugin.py:
(load_from_path): Load explicitly specified plugins.
(_load_plugin_module): Factored out from load_from_dir().

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: