Skip to content

Commit

Permalink
Change all instances of "benificary" to "beneficiary"
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronerussell authored and sharonfruit committed Dec 15, 2023
1 parent b3cf7bb commit 82a9b01
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/dot_ext/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/dot_ext/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2 class="ds-u-margin-bottom--2 ds-u-margin-top--4">App Details - Required Info

<!-- Demographic Filter -->
<div class="ds-u-margin-bottom--2">
<p class="ds-u-font-weight--bold ds-u-margin-bottom--1">Does my application need to collect beneficary demographic data?</p>
<p class="ds-u-font-weight--bold ds-u-margin-bottom--1">Does my application need to collect beneficiary demographic data?</p>
<p class="ds-u-margin-bottom--1">
<i>(Name, address, date of birth, race, and gender)</i>
</p>
Expand Down
12 changes: 6 additions & 6 deletions apps/dot_ext/tests/test_beneficiary_demographic_scope_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion apps/mymedicare_cb/tests/test_callback_slsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/include/app-form-required-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2>App Details - Required Info</h2>
<!-- Demographic Filter -->
<fieldset class="ds-c-fieldset">
<legend class="ds-u-font-weight--bold">
Does your application need to collect beneficary demographic information (Name, address, date of birth, race, and gender)?
Does your application need to collect beneficiary demographic information (Name, address, date of birth, race, and gender)?
</legend>
<input class="ds-c-choice" id="id_demographic_filter_on" type="radio" name="require_demographic_scopes" value="True"
{% if application.require_demographic_scopes == True %}
Expand Down

0 comments on commit 82a9b01

Please sign in to comment.