Add hacking check to prevent assert_called_once
We've had a few patches now over the last few releases to fix invalid mock assertions for assert_called_once. Rather than keep letting these creep back in to the code, this adds a hacking check to watch for this specific call and block it. Change-Id: I3cf4df523ddba49f57dd1d4d23e95e6d62d03c9e
This commit is contained in:
@@ -30,6 +30,7 @@ Cinder Specific Commandments
|
||||
- [C311] Check for proper naming and usage in option registration.
|
||||
- [C312] Check that assertIsNone(value) is used and not assertEqual(None, value).
|
||||
- [C313] Check that assertTrue(value) is used and not assertEqual(True, value).
|
||||
- [C314] Check for use of invalid mock.assert_called_once().
|
||||
|
||||
General
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user