message_ix_models.tests.model.water.test_utils

Functions

mock_scenario_info()

Mock ScenarioInfo with yv_ya property and year set.

test_compute_basin_demand_ratio()

Shape, columns, completeness, stress signal for basin demand ratio.

test_filter_list_additive_on_automatic(...)

filter_list augments automatic selection rather than replacing it.

test_get_vintage_and_active_years(...)

Test get_vintage_and_active_years function with different technical lifetimes.

test_read_config(test_context)

Classes

TestSelectByStress()

Tests for _select_by_stress().