test: sort before comparing

This commit is contained in:
Ankush Menat 2023-05-16 17:57:19 +05:30
parent eea57dbcf1
commit b247c3853e

View file

@ -436,8 +436,8 @@ class TestUser(FrappeTestCase):
getdoc("User", "Administrator")
doc = frappe.response.docs[0]
self.assertListEqual(
doc.get("__onload").get("all_modules", []),
[m.get("module_name") for m in get_modules_from_all_apps()],
sorted(doc.get("__onload").get("all_modules", [])),
sorted(m.get("module_name") for m in get_modules_from_all_apps()),
)
def test_reset_password_link_expiry(self):