From 30d7677337ec32926104cd22bb340948728c6836 Mon Sep 17 00:00:00 2001 From: Shrikant Giri Date: Sat, 20 Dec 2025 10:45:08 +0530 Subject: [PATCH] tests: assert empty child errors after parent validation failure --- tests/test_bound_fields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_bound_fields.py b/tests/test_bound_fields.py index 981c66b37..7e76113d1 100644 --- a/tests/test_bound_fields.py +++ b/tests/test_bound_fields.py @@ -231,6 +231,7 @@ class TestNestedBoundField: parent_bound = serializer["nested"] child_bound = parent_bound["value"] assert isinstance(child_bound.errors, dict) + assert child_bound.errors == {} assert child_bound.value == "ignored" assert child_bound.name == "nested.value"