Fix flake8 errors: E127 continuation line over-indented for visual indent
This commit is contained in:
+7
-7
@@ -41,8 +41,8 @@ class TestRule(object):
|
||||
priority=900,
|
||||
requires_output=True))
|
||||
rule_path = os.path.join(os.sep, 'rules', 'bash.py')
|
||||
assert Rule.from_path(Path(rule_path)) \
|
||||
== Rule('bash', match, get_new_command, priority=900)
|
||||
assert (Rule.from_path(Path(rule_path))
|
||||
== Rule('bash', match, get_new_command, priority=900))
|
||||
load_source.assert_called_once_with('bash', rule_path)
|
||||
|
||||
@pytest.mark.parametrize('rules, exclude_rules, rule, is_enabled', [
|
||||
@@ -79,15 +79,15 @@ class TestRule(object):
|
||||
def test_get_corrected_commands_with_rule_returns_list(self):
|
||||
rule = Rule(get_new_command=lambda x: [x.script + '!', x.script + '@'],
|
||||
priority=100)
|
||||
assert list(rule.get_corrected_commands(Command(script='test'))) \
|
||||
== [CorrectedCommand(script='test!', priority=100),
|
||||
CorrectedCommand(script='test@', priority=200)]
|
||||
assert (list(rule.get_corrected_commands(Command(script='test')))
|
||||
== [CorrectedCommand(script='test!', priority=100),
|
||||
CorrectedCommand(script='test@', priority=200)])
|
||||
|
||||
def test_get_corrected_commands_with_rule_returns_command(self):
|
||||
rule = Rule(get_new_command=lambda x: x.script + '!',
|
||||
priority=100)
|
||||
assert list(rule.get_corrected_commands(Command(script='test'))) \
|
||||
== [CorrectedCommand(script='test!', priority=100)]
|
||||
assert (list(rule.get_corrected_commands(Command(script='test')))
|
||||
== [CorrectedCommand(script='test!', priority=100)])
|
||||
|
||||
|
||||
class TestCommand(object):
|
||||
|
||||
Reference in New Issue
Block a user