fix: Check column length from information schema

This commit is contained in:
Deepesh Garg 2021-08-31 10:44:11 +05:30
parent f340ea2fea
commit cd17ca274c

View file

@ -201,6 +201,13 @@ class TestCustomizeForm(unittest.TestCase):
self.assertTrue(d.flags.update_db)
length = frappe.db.sql("""SELECT character_maximum_length
FROM information_schema.columns
WHERE table_name = 'tabNotification Log'
AND column_name = 'document_name'""")[0][0]
self.assertEqual(length, 255)
def test_custom_link(self):
try:
# create a dummy doctype linked to Event