Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2024
1 parent f03adc9 commit f91f3d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_znfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,11 @@ def test_nested_dataclass():
obj = Outer()
assert obj.outer_field.inner_field == "inner_field:1.0"


def test_no_dataclass():
x = NoDataClass()
with pytest.raises(TypeError, match="is not a dataclass"):
x.parameter = 5

with pytest.raises(TypeError, match="is not a dataclass"):
assert x.parameter is None

0 comments on commit f91f3d3

Please sign in to comment.