mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Update unit testing
This commit is contained in:
parent
b05504e1c4
commit
0f9c4703cf
@ -31,7 +31,7 @@ class SettingsTest(TestCase):
|
|||||||
# There should be two settings objects in the database
|
# There should be two settings objects in the database
|
||||||
settings = InvenTreeSetting.objects.all()
|
settings = InvenTreeSetting.objects.all()
|
||||||
|
|
||||||
self.assertEqual(settings.count(), 2)
|
self.assertTrue(settings.count() >= 2)
|
||||||
|
|
||||||
instance_name = InvenTreeSetting.objects.get(pk=1)
|
instance_name = InvenTreeSetting.objects.get(pk=1)
|
||||||
self.assertEqual(instance_name.key, 'INVENTREE_INSTANCE')
|
self.assertEqual(instance_name.key, 'INVENTREE_INSTANCE')
|
||||||
|
Loading…
Reference in New Issue
Block a user