diff options
author | Takashi Natsume <takanattie@gmail.com> | 2021-05-21 19:05:35 +0900 |
---|---|---|
committer | Rodolfo Alonso <ralonsoh@redhat.com> | 2021-06-03 16:04:07 +0000 |
commit | 05ee23ea15d12259c14be0c43a07bf46ccff6f0b (patch) | |
tree | d25c7b3753ac8be827db87a7078fff7a7e28b2d3 /HACKING.rst | |
parent | 7e98d189270c408b4a5f5b69e9e479a458407b22 (diff) | |
download | neutron-05ee23ea15d12259c14be0c43a07bf46ccff6f0b.tar.gz |
Follow up for replacing assertItemsEqual
The assertItemsEqual has been replaced with assertCountEqual
since I7c20fec08e5dc9f67b34100c925ea6724bbd25f0 .
However the hacking check has not been enabled.
This patch enables the hacking check
and replace remaining assertItemsEqual with assertCountEqual.
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Change-Id: I86202f36f1b7c0bce8b29558ad1e377c336b7258
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index 31da34521d..18b63422c1 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -16,6 +16,7 @@ Below you can find a list of checks specific to this repository. - [N322] Detect common errors with assert_called_once_with - [N328] Detect wrong usage with assertEqual +- [N329] Use assertCountEqual() instead of assertItemsEqual() - [N330] Use assertEqual(*empty*, observed) instead of assertEqual(observed, *empty*) - [N331] Detect wrong usage with assertTrue(isinstance()). |