mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Test recursive child count
This commit is contained in:
parent
ab6673caa3
commit
663cc269b4
@ -85,6 +85,8 @@ class CategoryTest(TestCase):
|
|||||||
self.assertEqual(self.fasteners.partcount, 2)
|
self.assertEqual(self.fasteners.partcount, 2)
|
||||||
self.assertEqual(self.capacitors.partcount, 1)
|
self.assertEqual(self.capacitors.partcount, 1)
|
||||||
|
|
||||||
|
self.assertEqual(self.electronics.partcount, 3)
|
||||||
|
|
||||||
def test_delete(self):
|
def test_delete(self):
|
||||||
""" Test that category deletion moves the children properly """
|
""" Test that category deletion moves the children properly """
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user