message_ix_models.tests.util.test_sdmx.TestDataflow

class message_ix_models.tests.util.test_sdmx.TestDataflow[source]

Bases: object

Test :class:`.Dataflow.

__init__()

Methods

__init__()

any_df()

build_computer(test_context)

A Computer from configure_build().

test_add_tasks(caplog, test_context)

test_configure_build(build_computer, file)

Input data can be read and has the expected dimensions.

test_generate_csv_template(any_df)

test_init(caplog)

test_repr(any_df)

test_required(any_df)

The :ExogenousDataFiles.required property has a bool value.

test_units(any_df)

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: Dataflow) None[source]

Input data can be read and has the expected dimensions.

test_required(any_df: Dataflow) None[source]

The :ExogenousDataFiles.required property has a bool value.

test_units(any_df: Dataflow) None[source]

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