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:
Ankush Menat
2025-12-18 14:43:05 +05:30
committed by GitHub
parent 9638e7ea83
commit fe66bd4dc2
2 changed files with 3 additions and 3 deletions

View File

@@ -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()