summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2020-09-28 22:35:00 +0900
committerTakashi Natsume <takanattie@gmail.com>2020-09-28 23:08:15 +0900
commit8d3c2ce92bcaf8cf777bf29fd46275572da61547 (patch)
treeb13754b5b56b7607af61705da5d5212ffa6bdfb9 /tox.ini
parent4acc112a308d0cedd5bfc00eb0621aba99e0d910 (diff)
downloadnova-8d3c2ce92bcaf8cf777bf29fd46275572da61547.tar.gz
Add a hacking rule for assert_has_calls
Add the following hacking rule. * N366: The assert_has_calls is a method rather than a variable. Not correct: mock_method.assert_has_calls = [mock.call(0)] Correct: mock_method.assert_has_calls([mock.call(0)]) This patch is a follow-up patch for Id094dd90efde09b9a835d4492f4a92b8f8ad296e. Change-Id: I892f8c23ee44f2b3518776a9705e3543f3115cae Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 1bb4087b7a..f2333b6e30 100644
--- a/tox.ini
+++ b/tox.ini
@@ -314,6 +314,7 @@ extension =
N363 = checks:did_you_mean_tuple
N364 = checks:nonexistent_assertion_methods_and_attributes
N365 = checks:useless_assertion
+ N366 = checks:check_assert_has_calls
paths =
./nova/hacking