mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
chore: replace assertEquals with alias assertEqual (#25613)
* chore: replace assertEquals with alias assertEqual assertEquals has been deprecated. ref: https://docs.python.org/3/library/unittest.html#deprecated-aliases * chore: sider fixes
This commit is contained in:
@@ -13,7 +13,7 @@ class TestHomepage(unittest.TestCase):
|
||||
set_request(method='GET', path='home')
|
||||
response = render()
|
||||
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
html = frappe.safe_decode(response.get_data())
|
||||
self.assertTrue('<section class="hero-section' in html)
|
||||
|
||||
@@ -28,7 +28,7 @@ class TestHomepageSection(unittest.TestCase):
|
||||
set_request(method='GET', path='home')
|
||||
response = render()
|
||||
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
html = frappe.safe_decode(response.get_data())
|
||||
|
||||
@@ -61,7 +61,7 @@ class TestHomepageSection(unittest.TestCase):
|
||||
set_request(method='GET', path='home')
|
||||
response = render()
|
||||
|
||||
self.assertEquals(response.status_code, 200)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
html = frappe.safe_decode(response.get_data())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user