feat: added test. Virtual doctype should not create table

This commit is contained in:
Shridhar 2020-12-29 11:19:35 +05:30
parent 348cdaa73a
commit 26d65a39f1

View file

@ -486,7 +486,7 @@ class TestDocType(unittest.TestCase):
doc = frappe.get_doc("DocType", "Test Virtual Doctype")
self.assertEqual(doc.is_virtual, 1)
self.assertFalse(frappe.db.table_exists('Test Virtual Doctype'))
def new_doctype(name, unique=0, depends_on='', fields=None):
doc = frappe.get_doc({