Skip to content

Commit 6ec1035

Browse files
authored
27100 - fix enum referencing error (#3371)
1 parent 10cdf04 commit 6ec1035

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

auth-api/src/auth_api/services/membership.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
org_type_to_group_mapping = {
5353
OrgType.MAXIMUS_STAFF.value: GROUP_MAXIMUS_STAFF,
54-
OrgType.CONTACT_CENTRE_STAFF.value: GROUP_CONTACT_CENTRE_STAFF,
54+
OrgType.CC_STAFF.value: GROUP_CONTACT_CENTRE_STAFF,
5555
}
5656

5757

auth-api/src/auth_api/utils/enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class OrgType(Enum):
103103
STAFF = "STAFF"
104104
SBC_STAFF = "SBC_STAFF"
105105
MAXIMUS_STAFF = "MAXIMUS_STAFF"
106-
CONTACT_CENTRE_STAFF = "CC_STAFF"
106+
CC_STAFF = "CC_STAFF"
107107

108108

109109
class DocumentType(Enum):

auth-api/src/auth_api/utils/roles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Role(Enum):
7676
OrgType.SBC_STAFF.value,
7777
OrgType.STAFF.value,
7878
OrgType.MAXIMUS_STAFF.value,
79-
OrgType.CONTACT_CENTRE_STAFF.value,
79+
OrgType.CC_STAFF.value,
8080
)
8181

8282
CLIENT_ADMIN_ROLES = (COORDINATOR, ADMIN)

auth-api/tests/unit/models/test_org.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def test_delete(session): # pylint:disable=unused-argument
196196

197197
def test_invalid_org_create_type_code(session):
198198
"""Test that creating an Org with an invalid type code is rejected."""
199-
invalid_type_code = OrgTypeEnum.CONTACT_CENTRE_STAFF.value
199+
invalid_type_code = OrgTypeEnum.CC_STAFF.value
200200

201201
org_info = {"name": "Invalid Org", "type_code": invalid_type_code}
202202

queue_services/account-mailer/tests/unit/test_worker_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def test_account_pad_invoice_mailer_queue(app, session, client):
306306

307307
email_body = mock_send.call_args.args[0].get("content").get("body")
308308
assert email_body is not None
309-
assert "This email confirms recent transaction(s) on you account" in email_body
309+
assert "This email confirms recent transaction(s) on your account" in email_body
310310
assert "Invoice reference number: 1234567890" in email_body
311311
assert "Transaction date:" in email_body
312312
assert "Log in to view transaction details" in email_body

0 commit comments

Comments
 (0)