mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +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…
x
Reference in New Issue
Block a user