summaryrefslogtreecommitdiff
path: root/src/mailman/rest/tests/test_systemconf.py
diff options
context:
space:
mode:
authorJ08nY2017-05-31 02:09:09 +0200
committerJ08nY2017-06-17 19:35:47 +0200
commit765f327dfac9c4537184b2073ea4893cf4560ad7 (patch)
tree76c7aec591fd0c4ca864d0653a8223836c4f774a /src/mailman/rest/tests/test_systemconf.py
parent6a148f762d5ee4fd91505eb0aa165b759899019f (diff)
downloadmailman-765f327dfac9c4537184b2073ea4893cf4560ad7.tar.gz
mailman-765f327dfac9c4537184b2073ea4893cf4560ad7.tar.zst
mailman-765f327dfac9c4537184b2073ea4893cf4560ad7.zip
Add pluggable components.
- Adds the notion of a 'plugin'. - A plugin has a package path and a flag specifying whether it's enabled or not. - Adds a find_pluggable_components function similar to the find_components one. This one dynamically searches not only the mailman package but all of plugins. - e.g. find_pluggable_components('rules', IRule) finds all IRule components in mailman.rules but also in example_plugin.rules for plugin names example_plugin. - Uses the find_pluggable_components function in place of find_components when searching for Rules, Handlers, Chains, EmailCommands, and Styles.
Diffstat (limited to 'src/mailman/rest/tests/test_systemconf.py')
-rw-r--r--src/mailman/rest/tests/test_systemconf.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mailman/rest/tests/test_systemconf.py b/src/mailman/rest/tests/test_systemconf.py
index f9fe9caa0..5acc38adb 100644
--- a/src/mailman/rest/tests/test_systemconf.py
+++ b/src/mailman/rest/tests/test_systemconf.py
@@ -182,6 +182,7 @@ class TestSystemConfiguration(unittest.TestCase):
'paths.here',
'paths.local',
'paths.testing',
+ 'plugin.master',
'runner.archive',
'runner.bad',
'runner.bounces',