Skip to content

Commit

Permalink
test immutability: remove assertion that do not test frozen behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuille committed Feb 23, 2021
1 parent 3e98d57 commit ad82bf0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_main.py
Expand Up @@ -365,9 +365,6 @@ class Config:
assert m.a == 10
m.a = 11
assert m.a == 11
with pytest.raises(ValueError) as exc_info:
m.b = 11
assert '"TestModel" object has no field "b"' in exc_info.value.args[0]


@pytest.mark.parametrize('allow_mutation_, frozen_', [(False, False), (False, True), (True, True)])
Expand All @@ -386,9 +383,6 @@ class Config:
with pytest.raises(TypeError) as exc_info:
m.a = 11
assert '"TestModel" is immutable and does not support item assignment' in exc_info.value.args[0]
with pytest.raises(ValueError) as exc_info:
m.b = 11
assert '"TestModel" object has no field "b"' in exc_info.value.args[0]


def test_not_frozen_are_not_hashable():
Expand Down

0 comments on commit ad82bf0

Please sign in to comment.