message_ix_models.model.buildings.testing.mock_buildings_context

message_ix_models.model.buildings.testing.mock_buildings_context(tmp_path: Path, test_context: Context, test_data_path: Path) Iterator[Context][source]

A context associated with a mock installation of MESSAGEix-Buildings.

In the returned Context, context.buildings.code_dir points to a temporary directory populated by copying the following contents from message_ix_models/data/test/buildings/mock/ in the package source.

(temporary directory)/ - message_ix_buildings/

  • sturm/ - data/

    • comm_sturm_aligned_R12.csv

    • input_prices_R12_default.csv

    • resid_comm_glance_aligned_R12.csv

    • resid_sturm_aligned_R12.csv

    • message_linking/ - (empty directory)

    • run_GLANCE_placeholder.R

    • run_MIXB_aligner.R

    • run_STURM_Circular_comm_glo.R

    • run_STURM_Circular_resid_glo.R