h2integrate.core.test.test_framework#

Functions

h2integrate.core.test.test_framework.test_custom_model_name_clash(temp_dir, subtests)#
h2integrate.core.test.test_framework.test_custom_financial_model_grouping(temp_dir, subtests)#
h2integrate.core.test.test_framework.test_unsupported_simulation_parameters(temp_dir)#
h2integrate.core.test.test_framework.test_check_time_step_with_model_bounds_allows_supported_dt()#
h2integrate.core.test.test_framework.test_check_time_step_with_model_bounds_raises_for_unsupported_dt()#
h2integrate.core.test.test_framework.test_technology_connections(temp_dir)#
h2integrate.core.test.test_framework.test_resource_connection_error_missing_connection(temp_dir)#
h2integrate.core.test.test_framework.test_resource_connection_error_missing_resource(temp_dir)#
h2integrate.core.test.test_framework.test_no_resource_connection_error_resource_to_multiple_techs(temp_dir)#
h2integrate.core.test.test_framework.test_reports_turned_off(temp_dir)#
h2integrate.core.test.test_framework.test_invalid_finance_group_combination(subtests)#
h2integrate.core.test.test_framework.test_system_order(subtests)#
h2integrate.core.test.test_framework.test_no_sites_entry(temp_dir)#

Verify that a model can set up and run without a sites entry in the plant config.

Uses Example 32 (multivariable streams), whose plant_config intentionally omits the sites key.

h2integrate.core.test.test_framework.test_create_xdsm_calls_create_xdsm_from_config_default_outfile()#
h2integrate.core.test.test_framework.test_create_xdsm_calls_create_xdsm_from_config_custom_outfile()#
h2integrate.core.test.test_framework.test_create_xdsm_raises_when_no_interconnections()#
h2integrate.core.test.test_framework.test_create_xdsm_raises_when_interconnections_key_missing()#
h2integrate.core.test.test_framework.test_create_xdsm_propagates_file_not_found_error()#