stevedore/stevedore/tests
Julien Danjou 3668de2513 driver: raise by default on import failure
When using the DriverManager class, if the driver fails to load, it's
actually better by default to re-raise the exception. It's not something
possible when loading multiple extension, but it's safe to do so with
drivers. This just changes the default behaviour, and it can still be
overridden.

The upside of that change is that when you try to load a driver that
cannot be loaded because of missing dependency, you actually get the
ImportError backtrace on your screen rather than the useless:
  RuntimeError: No 'foo' driver found, looking for 'bar'

which doesn't help at all. And the default mechanism that logs via
LOG.error() doesn't print anything at the screen if the application
didn't configure the logging subsystem.

Change-Id: I67d9e13a07c822c54dd16ac9ae7716747a24dd73
2014-04-25 14:51:45 +02:00
..
__init__.py basic ExtensionManager implementation 2012-06-19 15:05:03 -04:00
extension_unimportable.py driver: raise by default on import failure 2014-04-25 14:51:45 +02:00
manager.py Fix the test manager implementation 2014-01-27 17:28:44 -05:00
test_callback.py driver: raise by default on import failure 2014-04-25 14:51:45 +02:00
test_dispatch.py Fix flake8 failures from pull/27 2013-09-18 09:43:03 -05:00
test_driver.py driver: raise by default on import failure 2014-04-25 14:51:45 +02:00
test_enabled.py simplify test instance factory contract 2013-11-23 23:12:48 -05:00
test_example_fields.py Add tutorial section on creating plugins 2013-06-05 17:11:23 -04:00
test_example_simple.py Add tutorial section on creating plugins 2013-06-05 17:11:23 -04:00
test_extension.py Allow a on_load_failure_callback to be provided 2013-12-18 10:40:09 -08:00
test_hook.py Add ExtensionManager.__getitem__ 2013-06-03 10:54:49 -04:00
test_named.py Correct argument types in name sort tests 2013-05-19 12:22:48 -04:00
test_test_manager.py simplify test instance factory contract 2013-11-23 23:12:48 -05:00