mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +00:00
bug fix
This commit is contained in:
@ -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