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
fromconfigure_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
bool
value.The :ExogenousDataFiles.units property has a
pint.Unit
value.- build_computer(test_context)[source]
A
Computer
fromconfigure_build()
.This in turn invokes
transport.build.add_exogenous_data()
, which adds each ofFILES
to a Computer.
- test_configure_build(build_computer: Computer, file: ExogenousDataFile) None [source]
Input data can be read and has the expected dimensions.