mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-14 08:19:54 +00:00
Fixed unit tests
This commit is contained in:
@@ -44,7 +44,7 @@ class PartTest(TestCase):
|
||||
self.assertEqual(self.R1.get_absolute_url(), '/part/3/')
|
||||
|
||||
def test_category(self):
|
||||
self.assertEqual(str(self.C1.category), 'Electronics/Capacitors')
|
||||
self.assertEqual(str(self.C1.category), 'Electronics/Capacitors - Capacitors')
|
||||
|
||||
orphan = Part.objects.get(name='Orphan')
|
||||
self.assertIsNone(orphan.category)
|
||||
|
||||
Reference in New Issue
Block a user