summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorRiccardo Pittau <elfosardo@gmail.com>2021-03-08 18:53:49 +0100
committerRiccardo Pittau <elfosardo@gmail.com>2021-03-08 19:16:08 +0100
commit0b920d2a08bc1b5b6447e9368329d124258e2a8c (patch)
tree87edf233b8f854a16639e749030192376dd2ee9a /tox.ini
parent94fae9ac230232ffcfb41ab11038d9c441a02dad (diff)
downloadironic-0b920d2a08bc1b5b6447e9368329d124258e2a8c.tar.gz
Enforce autospec in test_console_utils
Adjust unit tests and filters in tox.ini Change-Id: I05a3a1b37d0ce3cf33b3b5b9637350f0fd1f0afb
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 1 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 420e4daac..e00496f5a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -135,12 +135,10 @@ max-complexity=18
# [H210] Require ‘autospec’, ‘spec’, or ‘spec_set’ in mock.patch/mock.patch.object calls
# [H904] Delay string interpolations at logging calls.
enable-extensions=H106,H203,H204,H205,H210,H904
-# TODO(rpittau) remove the ignores below when we're ready to apply H210 to
-# the various modules. This can be done in batches changing the filters.
+# [E402] Module level import not at top of file
per-file-ignores =
ironic/cmd/__init__.py:E402
ironic/tests/base.py:E402
- ironic/tests/unit/drivers/modules/test_console_utils.py:H210
[hacking]
import_exceptions = testtools.matchers, ironic.common.i18n