message_ix_models.tests.model.test_buildings

Functions

buildings_context(test_context)

A version of test_context() with a buildings.Config stored.

test_configure_legacy_reporting(...)

test_get_tech_groups(test_context, args, ...)

test_get_techs(buildings_context, commodity)

test_main_B_runs_with_materials(request, ...)

build_B runs with with_materials=True (materials linkage path).

test_main_B_runs_with_minimal_data(request, ...)

build_B runs without error with buildings config and minimal rc scenario.

test_mpd()

test_prepare_data_B_returns_structure(...)

prepare_data_B runs and returns a dict with expected keys (demand, etc.).

test_prepare_data_B_with_rc_tech_data(...)

prepare_data_B produces buildings tech data when scenario has rc techs.

test_report3()

test_sturm_run(tmp_path, test_context, ...)

Test that STURM can be run by either method.

test_sturm_scenario_name(input, expected)