mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
there are many ways to be broken ...
This commit is contained in:
parent
fa8f1bbd6f
commit
290e91ff79
11
InvenTree/plugin/samples/integration/broken_file.py
Normal file
11
InvenTree/plugin/samples/integration/broken_file.py
Normal 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
|
@ -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
|
from plugin import IntegrationPluginBase
|
||||||
|
|
||||||
|
|
||||||
@ -6,6 +6,10 @@ class BrokenIntegrationPlugin(IntegrationPluginBase):
|
|||||||
"""
|
"""
|
||||||
An very broken integration plugin
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user