fix(test): add a test for Error Log

This commit is contained in:
Rushabh Mehta 2022-04-18 17:27:33 +05:30
parent 626ef14e1e
commit 930ae45fb8
2 changed files with 8 additions and 3 deletions

View file

@ -50,7 +50,7 @@
"icon": "fa fa-warning-sign",
"idx": 1,
"links": [],
"modified": "2022-04-18 14:51:30.604304",
"modified": "2022-04-18 17:25:47.406873",
"modified_by": "Administrator",
"module": "Core",
"name": "Error Log",
@ -71,5 +71,6 @@
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "ASC",
"states": []
"states": [],
"title_field": "method"
}

View file

@ -9,4 +9,8 @@ import frappe
class TestErrorLog(unittest.TestCase):
pass
def test_error_log(self):
"""let's do an error log on error log?"""
doc = frappe.new_doc("Error Log")
error = doc.log_error("This is an error")
self.assertEqual(error.doctype, "Error Log")