Passed
Pull Request — master (#317)
by Jaisen
05:20
created

elodie.plugins.dummy.dummy.Dummy.before()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 4
dl 0
loc 2
rs 10
c 0
b 0
f 0
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
10
class Dummy(object):
11
    """A dummy class to execute plugin actions for tests."""
12
    def __init__(self):
13
        self.before_ran = False
14
15
    def before(self, file_path, destination_path, media):
16
        self.before_ran = True
17
18