mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add test for as_bool
This commit is contained in:
parent
e8ec0dc46b
commit
76fd529374
@ -89,6 +89,9 @@ class SettingsTest(TestCase):
|
||||
# check as_int
|
||||
self.assertEqual(stale_days.as_int(), 0)
|
||||
|
||||
# check as_bool
|
||||
self.assertEqual(report_test_obj.as_bool(), True)
|
||||
|
||||
# check to_native_value
|
||||
self.assertEqual(stale_days.to_native_value(), 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user