Add a hacking rule for useless assertions

Add a hacking rule for useless assertions in tests.

[N365] Misuse of assertTrue/assertIsNone

Change-Id: I3f76d57d75a266eddf7a4100c0b39fabe346e71c
This commit is contained in:
Takashi NATSUME
2019-08-21 14:36:25 +09:00
parent d4ed9ed93f
commit 2967897fa0
3 changed files with 55 additions and 0 deletions
+1
View File
@@ -75,6 +75,7 @@ Nova Specific Commandments
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.
- [N365] Check misuse of assertTrue/assertIsNone.
Creating Unit Tests
-------------------