h2integrate.core.test.test_utilities#

Functions

Classes

TestDictToYamlFormatting([methodName])

Test cases for the dict_to_yaml_formatting function.

h2integrate.core.test.test_utilities.test_get_path(subtests)#
h2integrate.core.test.test_utilities.test_find_file(subtests)#
h2integrate.core.test.test_utilities.test_make_unique_filename(subtests)#
class h2integrate.core.test.test_utilities.TestDictToYamlFormatting(methodName='runTest')#

Test cases for the dict_to_yaml_formatting function.

setUp()#

Set up test fixtures before each test method.

tearDown()#

Clean up test fixtures after each test method.

test_simple_numeric_conversion()#

Test conversion of simple numeric values to float.

test_string_and_boolean_preservation()#

Test that strings and booleans are preserved unchanged.

test_list_and_array_conversion()#

Test conversion of lists and numpy arrays.

test_nested_dictionaries()#

Test recursive processing of nested dictionaries.

test_list_with_nested_dictionaries()#

Test lists containing dictionaries.

test_empty_containers()#

Test handling of empty lists, arrays, and dictionaries.

test_yaml_serialization_compatibility()#

Test that the formatted dictionary can be properly serialized to YAML.

test_numpy_dtypes_conversion()#

Test conversion of various numpy data types.

test_comprehensive_realistic_example()#

Test with a realistic plant configuration example.

_classSetupFailed = False#
_class_cleanups = []#