mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 08:11:19 +00:00
test: fix tests failing due to dependent state (#51187)
* test: Use fixture instead of hardcoded employee * test: create user before assigning
This commit is contained in:
@@ -219,6 +219,7 @@ class TestIssue(TestSetUp):
|
||||
frappe.flags.current_time = get_datetime("2021-11-01 19:00")
|
||||
|
||||
issue = make_issue(frappe.flags.current_time, index=1)
|
||||
create_user("test@admin.com")
|
||||
create_communication(issue.name, "test@example.com", "Received", frappe.flags.current_time)
|
||||
add_assignment({"doctype": issue.doctype, "name": issue.name, "assign_to": ["test@admin.com"]})
|
||||
issue.reload()
|
||||
|
||||
Reference in New Issue
Block a user