diff options
-rw-r--r-- | ironic/tests/unit/common/test_images.py | 3 | ||||
-rw-r--r-- | test-requirements.txt | 1 | ||||
-rw-r--r-- | tox.ini | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/ironic/tests/unit/common/test_images.py b/ironic/tests/unit/common/test_images.py index faf4cf08c..11d7981a3 100644 --- a/ironic/tests/unit/common/test_images.py +++ b/ironic/tests/unit/common/test_images.py @@ -261,7 +261,8 @@ class FsImageTestCase(base.TestCase): def test__create_root_fs(self, path_exists_mock, dirname_mock, mkdir_mock, cp_mock): - path_exists_mock_func = lambda path: path == 'root_dir' + def path_exists_mock_func(path): + return path == 'root_dir' files_info = { 'a1': 'b1', diff --git a/test-requirements.txt b/test-requirements.txt index 57963854a..eeea491e0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -18,4 +18,3 @@ testscenarios>=0.4 # Apache-2.0/BSD WebTest>=2.0.27 # MIT bashate>=0.5.1 # Apache-2.0 flake8-import-order>=0.13 # LGPLv3 -pycodestyle<=2.3.1 @@ -101,7 +101,10 @@ setenv = PYTHONHASHSEED=0 commands = {posargs} [flake8] -ignore = E129 +# TODO(jlvillal): We should fix the E402 errors +# [E402] Module level import not at top of file +# [W503] Line break before binary operator. +ignore = E129,E402,W503 filename = *.py,app.wsgi exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build import-order-style = pep8 |