message_ix_models.tests.model.transport.test_files.TestExogenousDataFile
- class message_ix_models.tests.model.transport.test_files.TestExogenousDataFile[source]
Bases:
objectTest :class:`.ExogenousDataFile.
- __init__()
Methods
__init__()build_computer(test_context)A
Computerfromconfigure_build().test_configure_build(build_computer, file)Input data can be read and has the expected dimensions.
test_generate_csv_template()test_repr()The :ExogenousDataFiles.required property has a
boolvalue.The :ExogenousDataFiles.units property has a
pint.Unitvalue.- build_computer(test_context)[source]
A
Computerfromconfigure_build().This in turn invokes
transport.build.add_exogenous_data(), which adds each ofFILESto a Computer.
- test_configure_build(build_computer: Computer, file: ExogenousDataFile) None[source]
Input data can be read and has the expected dimensions.