fix: delete test submittable doctype

This commit is contained in:
prssanna 2021-04-16 14:03:36 +05:30
parent 2cf5915eee
commit 209ece8b6c

View file

@ -119,7 +119,7 @@ class TestNaming(unittest.TestCase):
frappe.db.sql("""delete from `tabSeries` where name = %s""", series)
def test_naming_for_cancelled_and_amended_doc(self):
frappe.get_doc({
submittable_doctype = frappe.get_doc({
"doctype": "DocType",
"module": "Core",
"custom": 1,
@ -149,3 +149,5 @@ class TestNaming(unittest.TestCase):
amended_doc.submit()
amended_doc.cancel()
self.assertEqual(amended_doc.name, "{}-2".format(original_name))
submittable_doctype.delete()