there are many ways to be broken ...

This commit is contained in:
Matthias 2021-11-21 02:19:14 +01:00
parent fa8f1bbd6f
commit 290e91ff79
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,11 @@
"""sample of a broken python file that will be ignored on import"""
from plugin import IntegrationPluginBase
class BrokenIntegrationPlugin(IntegrationPluginBase):
"""
An very broken integration plugin
"""
aaa = bb # noqa: F821

View File

@ -1,4 +1,4 @@
"""sample of a broken python file that will be ignroed on import"""
"""sample of a broken integration plugin"""
from plugin import IntegrationPluginBase
@ -6,6 +6,10 @@ class BrokenIntegrationPlugin(IntegrationPluginBase):
"""
An very broken integration plugin
"""
PLUGIN_TITLE = 'Broken Plugin'
PLUGIN_SLUG = 'broken'
def __init__(self):
super().__init__()
aaa = bb # noqa: F821
raise KeyError('This is a dummy error')