tests/fail_config_plugin/failp.py
raw| 1 | from errbot import BotPlugin, ValidationException |
| 2 | |
| 3 | |
| 4 | class FailP(BotPlugin): |
| 5 | """ |
| 6 | Just a plugin failing at config time. |
| 7 | """ |
| 8 | |
| 9 | def get_configuration_template(self): |
| 10 | return {"One": 1, "Two": 2} |
| 11 | |
| 12 | def check_configuration(self, configuration): |
| 13 | raise ValidationException("Message explaining why it failed.") |