def test_get_list_settings_with_non_default_settings(self): frappe.get_doc({"doctype": "List View Setting", "name": "DocType", "disable_count": 1}).insert() settings = get_list_settings("DocType") self.assertIsNotNone(settings) self.assertEqual(settings.disable_auto_refresh, 0) self.assertEqual(settings.disable_count, 1) self.assertEqual(settings.disable_sidebar_stats, 0)
def test_get_list_settings_without_settings(self): self.assertIsNone(get_list_settings("DocType"), None)
def test_get_list_settings_without_settings(self): self.assertEqual(get_list_settings("DocType"), {})