1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #29522 -- Improved test coverage of deserializers.

This commit is contained in:
Amir Karimi
2024-09-12 10:55:24 +02:00
committed by Sarah Boyce
parent f4813211e2
commit b2501759eb
4 changed files with 62 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
{"pk": "1", "model": "fixtures_regress.animal", "fields": {"name": "Eagle", "latin_name": "Aquila", "count": 3, "weight": 1.2}}

View File

@@ -0,0 +1,2 @@
{"pk": "1", "model": "fixtures_regress.animal", "fields": {"name": "Eagle", "extra_name": "Super Eagle", "latin_name": "Aquila", "count": 3, "weight": 1.2}}
{"pk": "1", "model": "fixtures_regress.animal_extra", "fields": {"name": "Nonexistent model", "extra_name": "test for ticket #29522", "latin_name": "Aquila", "count": 3, "weight": 1.2}}

View File

@@ -0,0 +1,17 @@
- pk: "1"
model: fixtures_regress.animal
fields:
name: Cat
extra_name: Super Cat
latin_name: Felis catus
count: 3
weight: 1.2
- pk: "1"
model: fixtures_regress.animal_extra
fields:
name: Nonexistent model
extra_name: test for ticket \#29522
latin_name: Felis catus
count: 3
weight: 1.2