Skip to content

Commit

Permalink
fix(test): update RQ serialization test
Browse files Browse the repository at this point in the history
The job name will now be the module + qualname instead of just the method name

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
(cherry picked from commit baa5b1c)
  • Loading branch information
akhilnarang authored and mergify[bot] committed Mar 26, 2024
1 parent 1eab176 commit c764282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/core/doctype/rq_job/test_rq_job.py
Expand Up @@ -56,7 +56,7 @@ def test_configurable_ttl(self):
def test_func_obj_serialization(self):
job = frappe.enqueue(method=test_func, queue="short")
rq_job = frappe.get_doc("RQ Job", job.id)
self.assertEqual(rq_job.job_name, "test_func")
self.assertEqual(rq_job.job_name, "frappe.core.doctype.rq_job.test_rq_job.test_func")

@timeout
def test_get_list_filtering(self):
Expand Down

0 comments on commit c764282

Please sign in to comment.