diff --git a/tests/test_camelize.py b/tests/test_camelize.py index 67d8ff8..5f3c668 100644 --- a/tests/test_camelize.py +++ b/tests/test_camelize.py @@ -31,6 +31,8 @@ ("field_value_2_type", "fieldValue2Type"), ], ) + + def test_camelize(input_str, expected_output): """ :param input_str: String that will be transformed. @@ -73,6 +75,10 @@ def test_camelize_dict_list(): "_APIResponse_": "test_acronym", "__APIResponse__": "test_acronym", }, + { + "test_date": "2022-02-14", + "test_uuid": "9e3f4a89-9989-4190-89a0-f50ffa3826db", + }, ], } ) @@ -105,6 +111,24 @@ def test_camelize_dict_list(): "_APIResponse_": "test_acronym", "__APIResponse__": "test_acronym", }, + { + "testDate": "2022-02-14", + "testUuid": "9e3f4a89-9989-4190-89a0-f50ffa3826db", + }, ], } assert actual == expected + +def test_camelize_dict(): + actual = { + "test_date": "2022-02-14", + "test_uuid": "9e3f4a89-9989-4190-89a0-f50ffa3826db", + } + expected = { + "testDate": "2022-02-14", + "testUuid": "9e3f4a89-9989-4190-89a0-f50ffa3826db", + } + + result = humps.camelize(actual) + + assert expected == result \ No newline at end of file