Skip to content

Commit

Permalink
Update test of Context.__repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Sep 19, 2023
1 parent 3d1d102 commit 9076386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message_ix_models/tests/util/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ def test_handle_cli_args(self):

ctx.delete()

def test_repr(self):
def test_repr(self) -> None:
c = Context()
assert re.fullmatch("<Context object at [^ ]+ with 2 keys>", repr(c))
assert re.fullmatch("<Context object at [^ ]+ with 3 keys>", repr(c))

def test_use_defaults(self, caplog):
caplog.set_level(logging.INFO)
Expand Down

0 comments on commit 9076386

Please sign in to comment.