-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporary commit: corrections, second pass
- Loading branch information
Showing
3 changed files
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ def test_edit_by_company_with_lack_of_nir_reason(self, _mock): | |
self.assertNotContains(response, self.NIR_UPDATE_TALLY_LINK_LABEL, html=True) | ||
self.assertContains(response, "Pour ajouter le numéro de sécurité sociale, veuillez décocher la case") | ||
|
||
NEW_NIR = "178122978200508" | ||
NEW_NIR = "1 781 22978200508" | ||
post_data = { | ||
"email": "[email protected]", | ||
"title": "M", | ||
|
@@ -257,7 +257,7 @@ def test_edit_by_company_without_nir_information(self, _mock): | |
"Le numéro de sécurité sociale est trop court (15 caractères autorisés).", | ||
) | ||
|
||
NEW_NIR = "178122978200508" | ||
NEW_NIR = "1 781 22978200508" | ||
post_data["nir"] = NEW_NIR | ||
response = self.client.post(url, data=post_data) | ||
self.assertRedirects(response, expected_url=back_url) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,6 @@ class EditUserInfoViewTest(InclusionConnectBaseTestCase): | |
LACK_OF_NIR_FIELD_ID = "id_lack_of_nir" | ||
LACK_OF_NIR_REASON_FIELD_ID = "id_lack_of_nir_reason" | ||
BIRTHDATE_FIELD_NAME = "birthdate" | ||
ERROR_INCONSISTENT_NIR = ( | ||
"Une incohérence a été détectée parmi les informations suivantes : " | ||
"la civilité, le numéro de sécurité sociale et la date de naissance. " | ||
"Veuillez corriger celle(s) en erreur pour continuer." | ||
) | ||
|
||
def setUp(self): | ||
super().setUp() | ||
|
@@ -322,7 +317,7 @@ def test_edit_with_lack_of_nir_reason(self, _mock): | |
self.assertNotContains(response, self.NIR_UPDATE_TALLY_LINK_LABEL, html=True) | ||
self.assertContains(response, "Pour ajouter le numéro de sécurité sociale, veuillez décocher la case") | ||
|
||
NEW_NIR = "178122978200508" | ||
NEW_NIR = "1 781 22978200508" | ||
post_data = { | ||
"email": "[email protected]", | ||
"title": "M", | ||
|
@@ -354,7 +349,7 @@ def test_edit_without_nir_information(self): | |
assert not response.context["form"]["nir"].field.disabled | ||
self.assertNotContains(response, self.NIR_UPDATE_TALLY_LINK_LABEL, html=True) | ||
|
||
NEW_NIR = "178122978200508" | ||
NEW_NIR = "1 781 22978200508" | ||
post_data = { | ||
"email": "[email protected]", | ||
"title": "M", | ||
|