fix(test): update RQ serialization test

The job name will now be the module + qualname instead of just the method name

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-03-26 10:53:42 +05:30
parent bd6eaab00e
commit baa5b1cb5f
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -56,7 +56,7 @@ class TestRQJob(FrappeTestCase):
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):