mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 18:01:14 +00:00
bug fix
This commit is contained in:
1 parent
920e7e0bb7
commit
a44267c306
1 file changed
+2
-2
@@ -233,11 +233,11 @@ class InvenTreeAPITestCase(APITestCase):
|
|||||||
|
|
||||||
if required_cols is not None:
|
if required_cols is not None:
|
||||||
for col in required_cols:
|
for col in required_cols:
|
||||||
self.assertIn(col, required_cols)
|
self.assertIn(col, headers)
|
||||||
|
|
||||||
if excluded_cols is not None:
|
if excluded_cols is not None:
|
||||||
for col in excluded_cols:
|
for col in excluded_cols:
|
||||||
self.assertNotIn(col, excluded_cols)
|
self.assertNotIn(col, headers)
|
||||||
|
|
||||||
if required_rows is not None:
|
if required_rows is not None:
|
||||||
self.assertEqual(len(rows), required_rows)
|
self.assertEqual(len(rows), required_rows)
|
||||||
|
|||||||
Reference in new issue
Block a user