mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes for unit testing
This commit is contained in:
parent
69c748d018
commit
bc8b3a68f0
@ -88,9 +88,9 @@ class CategoryTest(TestCase):
|
|||||||
|
|
||||||
self.assertEqual(self.electronics.partcount(), 3)
|
self.assertEqual(self.electronics.partcount(), 3)
|
||||||
|
|
||||||
self.assertEqual(self.mechanical.partcount(), 8)
|
self.assertEqual(self.mechanical.partcount(), 9)
|
||||||
self.assertEqual(self.mechanical.partcount(active=True), 7)
|
self.assertEqual(self.mechanical.partcount(active=True), 8)
|
||||||
self.assertEqual(self.mechanical.partcount(False), 6)
|
self.assertEqual(self.mechanical.partcount(False), 7)
|
||||||
|
|
||||||
self.assertEqual(self.electronics.item_count, self.electronics.partcount())
|
self.assertEqual(self.electronics.item_count, self.electronics.partcount())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user