diff options
author | Federico Ressi <fressi@redhat.com> | 2018-04-11 12:37:36 +0200 |
---|---|---|
committer | Federico Ressi <fressi@redhat.com> | 2018-04-12 11:09:37 +0200 |
commit | 2d6bcaa7e55be9fd070bade12824709ac848f8fe (patch) | |
tree | b5922b8f6c4b6d64bbcf41b78967b592a67bfa35 /tempest/hacking | |
parent | 1dbff8a53085ae90c07ca83c6add623ade2bd0a8 (diff) | |
download | tempest-2d6bcaa7e55be9fd070bade12824709ac848f8fe.tar.gz |
Fix code to pass pep8 Tox environment.
Command tox -e pep8 is failing making CI to fail: this fixes it.
Change-Id: I5b1acfc4ba2e0eb16f50bfd1cdaa8edc361923d1
Diffstat (limited to 'tempest/hacking')
-rw-r--r-- | tempest/hacking/checks.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tempest/hacking/checks.py b/tempest/hacking/checks.py index aae685cb5..b6e7f8c24 100644 --- a/tempest/hacking/checks.py +++ b/tempest/hacking/checks.py @@ -228,12 +228,12 @@ def dont_import_local_tempest_into_lib(logical_line, filename): if 'tempest/lib/' not in filename: return - if not ('from tempest' in logical_line - or 'import tempest' in logical_line): + if not ('from tempest' in logical_line or + 'import tempest' in logical_line): return - if ('from tempest.lib' in logical_line - or 'import tempest.lib' in logical_line): + if ('from tempest.lib' in logical_line or + 'import tempest.lib' in logical_line): return msg = ("T112: tempest.lib should not import local tempest code to avoid " @@ -266,9 +266,9 @@ def dont_use_config_in_tempest_lib(logical_line, filename): if 'tempest/lib/' not in filename: return - if ('tempest.config' in logical_line - or 'from tempest import config' in logical_line - or 'oslo_config' in logical_line): + if ('tempest.config' in logical_line or + 'from tempest import config' in logical_line or + 'oslo_config' in logical_line): msg = ('T114: tempest.lib can not have any dependency on tempest ' 'config.') yield(0, msg) |