2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

Tests for stock app

- Increase coverage of Stock/models.py to 84%
This commit is contained in:
Oliver Walters
2019-04-25 17:30:44 +10:00
parent 3c40418f04
commit f36f02b27f
7 changed files with 176 additions and 37 deletions

View File

@ -42,7 +42,7 @@ class CategoryTest(TestCase):
childs = self.p1.getUniqueChildren()
self.assertIn(self.p2.id, childs)
self.assertIn(self.p2.id, childs)
self.assertIn(self.p3.id, childs)
def test_unique_parents(self):
parents = self.p2.getUniqueParents()