Passed
Push — master ( b2d36d...e1a621 )
by Jaisen
02:25
created

elodie.plugins.runtimeerror.runtimeerror   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 26
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A RuntimeError.__init__() 0 2 1
A RuntimeError.after() 0 2 1
A RuntimeError.before() 0 2 1
A RuntimeError.batch() 0 2 1
1
"""
2
RuntimeError 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
9
10
class RuntimeError(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
        print(does_not_exist)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable does_not_exist does not seem to be defined.
Loading history...
20
21
    def batch(self):
22
        print(does_not_exist)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable does_not_exist does not seem to be defined.
Loading history...
23
24
    def before(self, file_path, destination_folder):
25
        print(does_not_exist)
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable does_not_exist does not seem to be defined.
Loading history...
26