Skip to content

Commit

Permalink
fix: update timestamp format (#488)
Browse files Browse the repository at this point in the history
* fix: update timestamp format

* chore: tests
  • Loading branch information
brobro10000 authored Jun 12, 2024
1 parent 4d03f3a commit cc796e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion enterprise_access/apps/content_assignments/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ class AssignmentAutomaticExpiredReason:

RETIRED_EMAIL_ADDRESS_FORMAT = 'retired_user{}@retired.invalid'

BRAZE_ACTION_REQUIRED_BY_TIMESTAMP_FORMAT = "%-I:%M %p %b %d, %Y"
BRAZE_ACTION_REQUIRED_BY_TIMESTAMP_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def test_send_reminder_email_for_pending_assignment(
'course_card_image': 'https://itsanimage.com',
'learner_portal_link': 'http://enterprise-learner-portal.example.com/test-slug',
'action_required_by': 'Jan 01, 2021',
'action_required_by_timestamp': '12:00 PM Jan 01, 2021'
'action_required_by_timestamp': '2021-01-01T12:00:00Z'
},
)

Expand Down Expand Up @@ -449,7 +449,7 @@ def test_send_email_for_new_assignment(
'course_card_image': 'https://itsanimage.com',
'learner_portal_link': '{}/{}'.format(settings.ENTERPRISE_LEARNER_PORTAL_URL, 'test-slug'),
'action_required_by': 'Jan 01, 2021',
'action_required_by_timestamp': '12:00 PM Jan 01, 2021'
'action_required_by_timestamp': '2021-01-01T12:00:00Z'
},
)
assert mock_braze_client.return_value.send_campaign_message.call_count == 1
Expand Down

0 comments on commit cc796e9

Please sign in to comment.