h2integrate.core.test.test_framework#
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A finance subgroup missing |
|
|
|
|
|
|
|
|
Verify that a model can set up and run without a |
|
|
|
|
|
|
|
|
- h2integrate.core.test.test_framework.test_missing_tech_interconnections(subtests, temp_copy_of_example)#
- h2integrate.core.test.test_framework.test_use_commodity_stream_timeseries_finances_error(subtests, temp_copy_of_example)#
- h2integrate.core.test.test_framework.test_check_tech_interconnections(subtests, temp_copy_of_example)#
- h2integrate.core.test.test_framework.test_custom_resource_model(subtests, temp_copy_of_example)#
- 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_finance_subgroup_missing_commodity_stream_raises(subtests)#
A finance subgroup missing
commodity_streammust raise a clear error.commodity_streamis a required field on every finance subgroup; if it is omitted the framework must raiseValueErrorwith a clear message rather than lettingcommodity_streamremainNone(which would later produceNone.rated_*_productionconnection errors from OpenMDAO).
- 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
sitesentry in the plant config.Uses Example 32 (multivariable streams), whose plant_config intentionally omits the
siteskey.
- 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()#