Brett Smith
0bf44ade7a
plugin: Add HookRegistry.load_included_hooks() method.
...
This lets us import the plugin module without importing all of the included
hooks. This provides better isolation and error reporting in case there's
something like a syntax problem in one of the hooks: it doesn't cause
importing any plugin module to fail.
2020-04-07 13:31:09 -04:00
Brett Smith
5566672cd6
plugin: Ensure run() can deal with all possible directives.
2020-03-31 14:30:49 -04:00
Brett Smith
0d370c445b
plugin: User configuration is passed to hooks on initialization.
2020-03-19 17:23:27 -04:00
Brett Smith
84d8adb7f6
plugin: Move hook initialization from HookRegistry to run().
...
Makes more sense here so run can report errors in hook configuration.
2020-03-19 16:42:13 -04:00
Brett Smith
e424173216
test_plugin: Restore negative assert to test_registry_group_by_directive.
2020-03-19 16:11:29 -04:00
Brett Smith
484c47a680
test_plugin: Parametrize HookRegistry.group_by_directive tests.
2020-03-19 16:00:22 -04:00
Brett Smith
d4d9bd6554
tests: Test HookRegistry using test instance, not real one.
...
This is better testing praxis and more prep for hooks-get-config.
2020-03-19 15:49:56 -04:00