diff --git a/tests/application_store_tests/test_submit.py b/tests/application_store_tests/test_submit.py index 6d01297ac..39afa86b9 100644 --- a/tests/application_store_tests/test_submit.py +++ b/tests/application_store_tests/test_submit.py @@ -226,6 +226,11 @@ def test_submit_route_success( assert assessment_record assert assessment_record.jsonb_blob["forms"] + try: + datetime.strptime(assessment_record.jsonb_blob["date_submitted"], "%Y-%m-%dT%H:%M:%S.%f") + except ValueError as e: + pytest.fail(f"Unexpected serialised application date format {e}") + def test_submit_route_submit_error(flask_test_client, seed_application_records, mocker, mock_successful_location_call): target_application = seed_application_records[0]