diff --git a/apps/dot_ext/forms.py b/apps/dot_ext/forms.py index 176e82e05..0c4f74783 100644 --- a/apps/dot_ext/forms.py +++ b/apps/dot_ext/forms.py @@ -168,7 +168,7 @@ def clean_require_demographic_scopes(self): require_demographic_scopes = self.cleaned_data.get("require_demographic_scopes") if type(require_demographic_scopes) != bool: msg = _( - "Does your application need to collect beneficary demographic information must be (Yes/No)." + "Does your application need to collect beneficiary demographic information must be (Yes/No)." ) raise forms.ValidationError(msg) return require_demographic_scopes @@ -278,7 +278,7 @@ def clean_require_demographic_scopes(self): require_demographic_scopes = self.cleaned_data.get("require_demographic_scopes") if type(require_demographic_scopes) != bool: msg = _( - "Does your application need to collect beneficary demographic information must be (Yes/No)." + "Does your application need to collect beneficiary demographic information must be (Yes/No)." ) raise forms.ValidationError(msg) return require_demographic_scopes diff --git a/apps/dot_ext/models.py b/apps/dot_ext/models.py index b9be56cb6..da5f1a350 100644 --- a/apps/dot_ext/models.py +++ b/apps/dot_ext/models.py @@ -140,7 +140,7 @@ class Application(AbstractApplication): first_active = models.DateTimeField(blank=True, null=True) last_active = models.DateTimeField(blank=True, null=True) - # Does this application need to collect beneficary demographic information? YES = True/Null NO = False + # Does this application need to collect beneficiary demographic information? YES = True/Null NO = False require_demographic_scopes = models.BooleanField( default=True, null=True, verbose_name="Are demographic scopes required?" ) diff --git a/apps/dot_ext/templates/oauth2_provider/application_detail.html b/apps/dot_ext/templates/oauth2_provider/application_detail.html index 090fa8f63..66246acfd 100755 --- a/apps/dot_ext/templates/oauth2_provider/application_detail.html +++ b/apps/dot_ext/templates/oauth2_provider/application_detail.html @@ -79,7 +79,7 @@
Does my application need to collect beneficary demographic data?
+Does my application need to collect beneficiary demographic data?
(Name, address, date of birth, race, and gender)
diff --git a/apps/dot_ext/tests/test_beneficiary_demographic_scope_changes.py b/apps/dot_ext/tests/test_beneficiary_demographic_scope_changes.py index fe2a57c2e..b3638815e 100644 --- a/apps/dot_ext/tests/test_beneficiary_demographic_scope_changes.py +++ b/apps/dot_ext/tests/test_beneficiary_demographic_scope_changes.py @@ -99,7 +99,7 @@ def test_bene_demo_scopes_change(self): # Scopes to be requested in the authorization request payload['scope'] = ' '.join(request_scopes) - # ------ TEST #1: 1st authorization: Beneficary authorizes to share demographic data. ------ + # ------ TEST #1: 1st authorization: Beneficiary authorizes to share demographic data. ------ payload['share_demographic_scopes'] = True # Perform authorization request @@ -157,7 +157,7 @@ def test_bene_demo_scopes_change(self): self.assertEqual(DataAccessGrant.objects.count(), 1) self.assertEqual(ArchivedDataAccessGrant.objects.count(), 0) - # ------ TEST #3: 3nd authorization: Beneficary authorizes NOT to share demographic data. ------ + # ------ TEST #3: 3nd authorization: Beneficiary authorizes NOT to share demographic data. ------ payload['share_demographic_scopes'] = False # Perform authorization request @@ -212,7 +212,7 @@ def test_bene_demo_scopes_change(self): self.assertEqual(response.status_code, 400) self.assertEqual(content.get('error', None), "invalid_grant") - # ------ TEST #6: Beneficary authorizes to share FULL demographic data again.. ------ + # ------ TEST #6: Beneficiary authorizes to share FULL demographic data again.. ------ payload['share_demographic_scopes'] = True # Perform authorization request @@ -253,7 +253,7 @@ def test_bene_demo_scopes_change(self): self.assertEqual(DataAccessGrant.objects.count(), 1) self.assertEqual(ArchivedDataAccessGrant.objects.count(), 1) - # ------ TEST #8: Beneficary authorizes NOT to share demographic data, but application + # ------ TEST #8: Beneficiary authorizes NOT to share demographic data, but application # does not exchange code for access_token. Test that token_3 has been removed. payload['share_demographic_scopes'] = False @@ -279,7 +279,7 @@ def test_bene_demo_scopes_change(self): self.assertEqual(DataAccessGrant.objects.count(), 1) self.assertEqual(ArchivedDataAccessGrant.objects.count(), 2) - # ------ TEST #9: Beneficary authorizes to share FULL demographic data, then chooses DENY on consent page ------ + # ------ TEST #9: Beneficiary authorizes to share FULL demographic data, then chooses DENY on consent page ------ payload['share_demographic_scopes'] = True # Perform authorization request @@ -325,7 +325,7 @@ def test_bene_demo_scopes_change(self): self.assertEqual(response.status_code, 401) self.assertEqual(content.get('detail', None), "Authentication credentials were not provided.") - # ------ TEST #10: Beneficary shares FULL and application REQUIRES. Then APPLICATION changes to NOT required ------ + # ------ TEST #10: Beneficiary shares FULL and application REQUIRES. Then APPLICATION changes to NOT required ------ payload['share_demographic_scopes'] = True # Beneficiary chooses the ALLOW button choice on consent page diff --git a/apps/mymedicare_cb/tests/test_callback_slsx.py b/apps/mymedicare_cb/tests/test_callback_slsx.py index 7b3020638..ba29586d4 100644 --- a/apps/mymedicare_cb/tests/test_callback_slsx.py +++ b/apps/mymedicare_cb/tests/test_callback_slsx.py @@ -519,7 +519,7 @@ def test_callback_allow_slsx_changes_to_hicn_and_mbi(self): 5. The bene's HICN has been changed in the mock SLSx user_info response. - This is for the use case where a beneficary's HICN has been changed in the + This is for the use case where a beneficiary's HICN has been changed in the SLSx/BEDAP upstream identity service. This response is mocked by: MockUrlSLSxResponses.slsx_user_info_mock_changed_hicn diff --git a/templates/include/app-form-required-info.html b/templates/include/app-form-required-info.html index 20c96f8b8..a16774588 100644 --- a/templates/include/app-form-required-info.html +++ b/templates/include/app-form-required-info.html @@ -24,7 +24,7 @@