message_ix_models.tests.util.test_context.TestContext
- class message_ix_models.tests.util.test_context.TestContext[source]
Bases:
object
- __init__()
Methods
__init__
()test_clone_to_dest
(caplog, test_context)test_dealias
(caplog)Aliasing works with
Context.__init__()
,Context.update()
.test_deepcopy
(session_context)Paths are preserved through deepcopy().
test_default_value
(test_context)test_get_cache_path
(pytestconfig, test_context)cache_path() returns the expected output.
test_get_instance
(session_context)test_get_local_path
(tmp_path_factory, ...)test_get_platform
(session_context)test_get_scenario
(test_context)test_handle_cli_args
()test_only
()test_repr
()test_set_scenario
(test_context)test_use_defaults
(caplog)test_write_debug_archive
(mix_models_cli)write_debug_archive()
works.- test_dealias(caplog)[source]
Aliasing works with
Context.__init__()
,Context.update()
.
- test_write_debug_archive(mix_models_cli)[source]
write_debug_archive()
works.