message_ix_models.tests.model.transport.test_files.TestExogenousDataFile

class message_ix_models.tests.model.transport.test_files.TestExogenousDataFile[source]

Bases: object

Test :class:`.ExogenousDataFile.

__init__()

Methods

__init__()

build_computer(test_context)

A Computer from configure_build().

test_configure_build(build_computer, file)

Input data can be read and has the expected dimensions.

test_generate_csv_template()

test_repr()

test_required()

The :ExogenousDataFiles.required property has a bool value.

test_units()

The :ExogenousDataFiles.units property has a pint.Unit value.

build_computer(test_context)[source]

A Computer from configure_build().

This in turn invokes transport.build.add_exogenous_data(), which adds each of FILES to a Computer.

test_configure_build(build_computer: Computer, file: ExogenousDataFile) None[source]

Input data can be read and has the expected dimensions.

test_required()[source]

The :ExogenousDataFiles.required property has a bool value.

test_units()[source]

The :ExogenousDataFiles.units property has a pint.Unit value.