Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonytec2 authored and omry committed Jun 12, 2020
1 parent f025515 commit 7ab414c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def finalize(self, cfg: Any) -> None:
create=lambda: create_struct({"foo": "bar"}),
op=lambda cfg: getattr(cfg, "fail"),
exception_type=ConfigAttributeError,
msg="Key 'fail' in not in struct",
msg="Key 'fail' is not in struct",
key="fail",
),
id="dict,struct:access_invalid_attribute",
Expand Down Expand Up @@ -202,7 +202,7 @@ def finalize(self, cfg: Any) -> None:
create=lambda: create_struct({"foo": "bar"}),
op=lambda cfg: setattr(cfg, "zlonk", "zlank"),
exception_type=ConfigAttributeError,
msg="Key 'zlonk' in not in struct",
msg="Key 'zlonk' is not in struct",
key="zlonk",
),
id="dict,struct:set_invalid_attribute",
Expand Down Expand Up @@ -265,7 +265,7 @@ def finalize(self, cfg: Any) -> None:
create=lambda: create_struct({"foo": "bar"}),
op=lambda cfg: cfg.__setitem__("zoo", "zonk"),
exception_type=KeyError,
msg="Key 'zoo' in not in struct",
msg="Key 'zoo' is not in struct",
key="zoo",
),
id="dict,struct:setitem_on_none_existing_key",
Expand Down Expand Up @@ -298,7 +298,7 @@ def finalize(self, cfg: Any) -> None:
create=lambda: create_struct({"foo": "bar"}),
op=lambda cfg: cfg.__getitem__("zoo"),
exception_type=KeyError,
msg="Key 'zoo' in not in struct",
msg="Key 'zoo' is not in struct",
key="zoo",
),
id="dict,struct:getitem_key_not_in_struct",
Expand Down

0 comments on commit 7ab414c

Please sign in to comment.