def test_nested_property():
    input_dict = {"practice": {"ods_code": "A12345", "sla_metrics": {"within_3_days": 5}}}

    actual = camelize_dict(input_dict)

    expected = {"practice": {"odsCode": "A12345", "slaMetrics": {"within3Days": 5}}}

    assert actual == expected
def test_single_string_property():
    input_dict = {"ods_code": "A12345"}

    actual = camelize_dict(input_dict)

    expected = {"odsCode": "A12345"}

    assert actual == expected
def test_single_list_property():
    input_dict = {"practices": [{"ods_code": "A12345"}, {"ods_code": "B12345"}]}

    actual = camelize_dict(input_dict)

    expected = {"practices": [{"odsCode": "A12345"}, {"odsCode": "B12345"}]}

    assert actual == expected
def _upload_data_platform_json_object(platform_data, s3_object):
    content_dict = asdict(platform_data)
    camelized_dict = camelize_dict(content_dict)
    upload_json_object(camelized_dict, s3_object)
def _write_data_platform_json_file(platform_data, output_file_path):
    content_dict = asdict(platform_data)
    camelized_dict = camelize_dict(content_dict)
    write_json_file(camelized_dict, output_file_path)