Passed
Push — master ( 926057...7c3ea1 )
by Jaisen
02:56
created

elodie.plugins.dummy.dummy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Dummy.__init__() 0 2 1
A Dummy.before() 0 2 1
1
"""
2
Dummy plugin object used for tests.
3
4
.. moduleauthor:: Jaisen Mathai <[email protected]>
5
"""
6
from __future__ import print_function
7
from builtins import object
8
9
from elodie.plugins.plugins import PluginBase
10
11
class Dummy(PluginBase):
12
13
    __name__ = 'Dummy'
14
15
    """A dummy class to execute plugin actions for tests."""
16
    def __init__(self):
17
        self.before_ran = False
18
19
    def before(self, file_path, destination_path, media):
20
        self.before_ran = True
21
22