mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
bug fix
This commit is contained in:
parent
920e7e0bb7
commit
a44267c306
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user