We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c5ade commit 8ca4f1aCopy full SHA for 8ca4f1a
message_ix_models/cli.py
@@ -74,7 +74,7 @@ def main(click_ctx, **kwargs):
74
# NB this can't be Context.only(). When click.testing.CliRunner is used, there may
75
# already be ≥2 Context instances created elsewhere in the test session before
76
# this function is called to run CLI commands within the test session.
77
- click_ctx.obj = Context.get_instance(-1)
+ click_ctx.obj = Context()
78
79
# Handle command-line parameters
80
click_ctx.obj.core.handle_cli_args(**kwargs)
0 commit comments