| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 2 | ThrowError plugin object used for tests. |
||
| 3 | |||
| 4 | .. moduleauthor:: Jaisen Mathai <[email protected]> |
||
| 5 | """ |
||
| 6 | from __future__ import print_function |
||
| 7 | |||
| 8 | from elodie.plugins.plugins import PluginBase, ElodiePluginError |
||
| 9 | |||
| 10 | class ThrowError(PluginBase): |
||
| 11 | |||
| 12 | __name__ = 'ThrowError' |
||
| 13 | |||
| 14 | """A dummy class to execute plugin actions for tests.""" |
||
| 15 | def __init__(self): |
||
| 16 | pass |
||
| 17 | |||
| 18 | def after(self, file_path, destination_folder, final_file_path, metadata): |
||
| 19 | raise ElodiePluginError('Sample plugin error for after') |
||
| 20 | |||
| 21 | def batch(self): |
||
| 22 | raise ElodiePluginError('Sample plugin error for batch') |
||
| 23 | |||
| 24 | def before(self, file_path, destination_folder): |
||
| 25 | raise ElodiePluginError('Sample plugin error for before') |
||
| 26 |