Skip to content

Commit

Permalink
fix: include url_for_button_in_modal_v2 in CustomerAgreementSerializer (
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Dec 10, 2024
1 parent ffe9285 commit 078919c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions enterprise_access/apps/api/v1/tests/test_bff_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def setUp(self):
'expired_subscription_modal_messaging_v2'
),
'modal_header_text_v2': self.mock_customer_agreement.get('modal_header_text_v2'),
'url_for_button_in_modal_v2': self.mock_customer_agreement.get('url_for_button_in_modal_v2'),
}
self.expected_subscription_license = {
'uuid': self.mock_subscription_license.get('uuid'),
Expand Down
6 changes: 3 additions & 3 deletions enterprise_access/apps/api_client/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def setUp(self):
"days_until_expiration_including_renewals": 50,
"is_locked_for_renewal_processing": False,
"should_auto_apply_licenses": False,
"created": _days_from_now(-60, DATE_FORMAT_ISO_8601)
"created": _days_from_now(-60, DATE_FORMAT_ISO_8601),
}
self.mock_customer_agreement = {
"uuid": self.mock_customer_agreement_uuid,
Expand All @@ -92,7 +92,7 @@ def setUp(self):
"modal_header_text_v2": None,
"expired_subscription_modal_messaging_v2": None,
"button_label_in_modal_v2": None,
"url_for_button_in_modal_v2": None
"url_for_button_in_modal_v2": None,
}
self.mock_subscription_license = {
"uuid": self.mock_learner_license_activation_uuid,
Expand All @@ -103,7 +103,7 @@ def setUp(self):
"subscription_plan_uuid": self.mock_subscription_plan_uuid,
"revoked_date": None,
"activation_key": self.mock_license_activation_key,
"subscription_plan": self.mock_subscription_plan
"subscription_plan": self.mock_subscription_plan,
}
self.mock_learner_license_auto_apply_response = {
**self.mock_subscription_license,
Expand Down
1 change: 1 addition & 0 deletions enterprise_access/apps/bffs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class CustomerAgreementSerializer(BaseBffSerializer):
button_label_in_modal_v2 = serializers.CharField(required=False, allow_null=True)
expired_subscription_modal_messaging_v2 = serializers.CharField(required=False, allow_blank=True, allow_null=True)
modal_header_text_v2 = serializers.CharField(required=False, allow_null=True)
url_for_button_in_modal_v2 = serializers.CharField(required=False, allow_null=True)


class SubscriptionPlanSerializer(BaseBffSerializer):
Expand Down

0 comments on commit 078919c

Please sign in to comment.