From f91f3d3036ee87730bcdba79475691637e74a0fc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 17 Oct 2024 08:03:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_znfields.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_znfields.py b/tests/test_znfields.py index 53bfd42..492bb17 100644 --- a/tests/test_znfields.py +++ b/tests/test_znfields.py @@ -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