summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2019-08-21 11:45:22 +0900
committerTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2019-08-21 05:23:02 +0000
commitd4ed9ed93f91e2ffa43b563abdc5a3b90ab358a1 (patch)
treedc7841f0049e97f43c8bc1bf57a8ca72364a0abc /HACKING.rst
parent5ccdbc7189640d02cc17e2156c635e8f7eafb02e (diff)
downloadnova-d4ed9ed93f91e2ffa43b563abdc5a3b90ab358a1.tar.gz
Add a hacking rule for non-existent assertions
Add a hacking rule for non-existent mock assertion methods and attributes. [N364] Non existent mock assertion method or attribute (<name>) is used. Check a typo or whether the assertion method should begin with 'assert_'. Change-Id: Ic6860e373120086a1a2ae9953f09a7bbaa032a7b
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst
index 486020db1d..b5f20ffd19 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -74,6 +74,7 @@ Nova Specific Commandments
not "from nova.privsep import path". This ensures callers know that the method they're
calling is using priviledge escalation.
- [N363] Disallow ``(not_a_tuple)`` because you meant ``(a_tuple_of_one,)``.
+- [N364] Check non-existent mock assertion methods and attributes.
Creating Unit Tests
-------------------