mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add test for as_choice
This commit is contained in:
parent
d8c20894ce
commit
e8ec0dc46b
@ -73,6 +73,10 @@ class SettingsTest(TestCase):
|
||||
self.assertEqual(instance_obj.get_setting_units(instance_ref), '')
|
||||
self.assertEqual(instance_obj.get_setting_units(stale_ref), 'days')
|
||||
|
||||
# check as_choice
|
||||
self.assertEqual(instance_obj.as_choice(), 'My very first InvenTree Instance')
|
||||
self.assertEqual(report_size_obj.as_choice(), 'A4')
|
||||
|
||||
# check is_choice
|
||||
self.assertEqual(instance_obj.is_choice(), False)
|
||||
self.assertEqual(report_size_obj.is_choice(), True)
|
||||
|
Loading…
Reference in New Issue
Block a user