Skip to content

Commit 6df95e0

Browse files
committed
fix(eap): align test with renamed task send_new_eap_registration_email
1 parent 280f38c commit 6df95e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets

eap/test_views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def test_list_eap_registration(self):
122122
self.assertEqual(response.status_code, 200)
123123
self.assertEqual(len(response.data["results"]), 5)
124124

125-
@mock.patch("eap.tasks.send_eap_registration_email")
126-
def test_create_eap_registration(self, send_eap_registration_email):
125+
@mock.patch("eap.tasks.send_new_eap_registration_email")
126+
def test_create_eap_registration(self, send_new_eap_registration_email):
127127
url = "/api/v2/eap-registration/"
128128
data = {
129129
"eap_type": EAPType.FULL_EAP,
@@ -158,7 +158,7 @@ def test_create_eap_registration(self, send_eap_registration_email):
158158
self.disaster_type.id,
159159
},
160160
)
161-
self.assertTrue(send_eap_registration_email)
161+
self.assertTrue(send_new_eap_registration_email)
162162

163163
def test_retrieve_eap_registration(self):
164164
eap_registration = EAPRegistrationFactory.create(

0 commit comments

Comments
 (0)