Fix pep8 test

Also adding E741 to ignore list.

Change-Id: Iedd6daa7c45fdbe53e9fefcd84ce65f6cc33514d
This commit is contained in:
Riccardo Pittau 2020-05-12 11:30:58 +02:00
parent 68b8aea738
commit 98e907ec5a
2 changed files with 4 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class StorageTestCase(base.TestCase):
'/redfish/v1/Systems/437XR1138R2/Storage/1/Drives/3F5A8C54207B7233', # noqa
'/redfish/v1/Systems/437XR1138R2/Storage/1/Drives/32ADF365C6C1B7BD', # noqa
'/redfish/v1/Systems/437XR1138R2/Storage/1/Drives/3D58ECBC375FD9F2', # noqa
), self.storage.drives_identities)
), self.storage.drives_identities)
def test_get_drive(self):
# | WHEN |

View File

@ -54,8 +54,9 @@ commands = oslo_debug_helper -t sushy/tests {posargs}
[flake8]
show-source = True
# E123, E125 skipped as they are invalid PEP-8.
# [W503] Line break occurred before a binary operator. Conflicts with W504.
ignore = E123,E125,W503
# E741 ambiguous variable name.
# W503 Line break occurred before a binary operator. Conflicts with W504.
ignore = E123,E125,E741,W503
# [H106] Don't put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
# [H204] Use assert(Not)Equal to check for equality.