message_ix_models.tests.model.test_disutility

Tests of model.disutility.

Functions

groups()

Fixture: list of 2 consumer groups.

minimal_test_data(scenario)

Generate data for test_minimal().

scenario(request, test_context, techs)

Fixture: a Scenario with technologies given by techs().

spec(groups, techs, template)

Fixture: a prepared spec for the minimal test case.

techs()

Fixture: list of 2 technologies for which groups can have disutility.

template()

Fixture: :class:.`Code` with annotations, for disutility.get_spec().

test_add(scenario, groups, techs, template)

disutility.add() runs on the bare RES; the result solves.

test_data_conversion(scenario, spec)

data_conversion() runs.

test_data_source(scenario, spec)

data_source() runs.

test_get_data(scenario, spec)

get_data() runs.

test_get_spec(groups, techs, template)

get_spec() runs and produces expected output.

test_minimal(scenario, groups, techs, template)

Expected results are generated from a minimal test case.