fix(test): add a test for Error Log
This commit is contained in:
parent
626ef14e1e
commit
930ae45fb8
2 changed files with 8 additions and 3 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue