Fixed errors found during linters test

This commit is contained in:
Aleskarova, Dinara 2017-05-02 11:44:27 +04:00
parent e376e7bc9f
commit 0e8a0625d5
5 changed files with 13 additions and 13 deletions

View file

@ -16,7 +16,7 @@ class PluginClass(object):
version = '1.0.0'
def __init__(self, tree):
"""Dummy constructor to provide mandatory parameter."""
"""Provide mandatory parameter using dummy constructor."""
pass
def run(self):
@ -25,7 +25,7 @@ class PluginClass(object):
def plugin_func(func):
"""Decorator for file plugins which are implemented as functions."""
"""Implement decorator for file plugins as functions."""
func.name = 'test'
func.version = '1.0.0'
return func
@ -33,13 +33,13 @@ def plugin_func(func):
@plugin_func
def plugin_func_gen(tree):
"""Simple file plugin function yielding the expected report."""
"""Yield the expected report with simple file plugin funciton."""
yield EXPECTED_REPORT + (type(plugin_func_gen), )
@plugin_func
def plugin_func_list(tree):
"""Simple file plugin function returning a list of reports."""
"""Return a list of reports with simple file plugin function."""
return [EXPECTED_REPORT + (type(plugin_func_list), )]