test.unit.test_utils

Pytest unit tests for YFPY utils module.

Functions

test_complex_json_handler

Unit test for custom JSON handler built to handle serialization/deserialization of YFPY objects.

test_convert_strings_to_numeric_equivalents

Unit test for util used to convert strings to their numerical equivalents.

test_dict_to_list

Unit test for util used to convert a JSON dictionary to a list.

test_flatten_json_dict_list

Unit test for util used to flatten a JSON list of dictionaries with unique keys to a Python dictionary.

test_flatten_to_list

Unit test for util used to flatten a JSON dictionary with extraneous keys to a Python list.

test_flatten_to_objects

Unit test for util used to flatten a JSON dictionary to a Python dictionary of class instances.

test_get_type

Unit test for util used to get Python object types.

test_prettify_data

Unit test for util used to prettify JSON strings.

test_reformat_json_list

Unit test for util used clean and reformat a JSON list.

test_reorganize_json_dict

Unit test for util used to reorder a JSON dictionary of dictionaries to a Python OrderedDict sorted by a key.

test_unpack_data

Unit test for util used to unpack nested data.