Skip to content

Commit

Permalink
another test for readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
omry committed Mar 10, 2021
1 parent 4839d3b commit ad9c5c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_readonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
raises(ReadonlyConfigError, match="a"),
id="dict_setitem",
),
pytest.param(
{"a": None},
lambda c: c.__setitem__("a", {"b": 10}),
raises(ReadonlyConfigError, match="a"),
id="dict_setitem",
),
pytest.param(
{"a": {"b": {"c": 1}}},
lambda c: c.__getattr__("a").__getattr__("b").__setitem__("c", 1),
Expand Down

0 comments on commit ad9c5c3

Please sign in to comment.