mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-01-09 18:20:55 +03:00
tests: assert empty child errors after parent validation failure
This commit is contained in:
parent
e9aaf0649b
commit
30d7677337
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user