Skip to content

Commit

Permalink
Merge pull request #697 from openedx/knguyen2/ent-9374
Browse files Browse the repository at this point in the history
feat: add created time to subscriptions api response
  • Loading branch information
katrinan029 authored Aug 19, 2024
2 parents f3455bf + fbe3b27 commit 678a0a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion license_manager/apps/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class Meta:
'days_until_expiration',
'days_until_expiration_including_renewals',
'is_locked_for_renewal_processing',
'should_auto_apply_licenses'
'should_auto_apply_licenses',
'created',
]


Expand Down
3 changes: 2 additions & 1 deletion license_manager/apps/api/v1/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ def test_subscription_plan_create_non_staff_user_200(api_client, non_staff_user)
"title",
"uuid",
"is_current",
"created",
}
assert response.json().keys() == expected_fields

Expand Down Expand Up @@ -1006,7 +1007,7 @@ def test_subscription_plan_provisioning_admins_list_non_staff_user_200(api_clien
'is_active', 'is_revocation_cap_enabled', 'days_until_expiration',
'days_until_expiration_including_renewals',
'is_locked_for_renewal_processing', 'should_auto_apply_licenses',
'licenses', 'revocations', 'prior_renewals'
'licenses', 'revocations', 'prior_renewals', 'created',
}
for result in response.json()['results']:
assert expected_result_keys.issubset(result.keys())
Expand Down

0 comments on commit 678a0a9

Please sign in to comment.