mirror of
https://github.com/certbot/certbot.git
synced 2026-01-21 19:01:07 +03:00
More sphinxiness, more clarity
This commit is contained in:
@@ -323,7 +323,7 @@ def diagnose_configurator_problem(cfg_type, requested, plugins):
|
||||
:param string requested: the plugin that was requested
|
||||
:param PluginRegistry plugins: available plugins
|
||||
|
||||
:raises error.ConfiguratorError if there was a problem
|
||||
:raises error.ConfiguratorError: if there was a problem
|
||||
"""
|
||||
|
||||
if requested:
|
||||
|
||||
@@ -98,10 +98,13 @@ class CLITest(unittest.TestCase):
|
||||
plugins = disco.PluginsRegistry.find_all()
|
||||
args = ['--agree-eula', '--apache', '--authenticator', 'standalone']
|
||||
ret, _, _, _ = self._call(args)
|
||||
# TODO replace these cases with .mockery to test both paths regardless
|
||||
# of what's actually installed
|
||||
if "apache" in plugins:
|
||||
self.assertTrue("Too many flags setting" in ret)
|
||||
else:
|
||||
self.assertTrue("The requested apache plugin does not" in ret)
|
||||
self.assertTrue("The requested apache plugin does not appear" in ret)
|
||||
|
||||
|
||||
def test_rollback(self):
|
||||
_, _, _, client = self._call(['rollback'])
|
||||
|
||||
Reference in New Issue
Block a user