mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed fixtures loading isolation in tests.
fixture1.json and fixture2.json exist in both "fixtures" and "fixtures_model_package". Both apps are listed in "INSTALLED_APPS". The loaddata management command loads from installed apps, thus loads both fixtures when a test runs loaddata with any of these fixtures.
This commit is contained in:
committed by
Mariusz Felisiak
parent
099bce1bf0
commit
2e48cf6bd9
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"pk": "3",
|
||||
"model": "fixtures_model_package.article",
|
||||
"fields": {
|
||||
"headline": "Copyright is fine the way it is",
|
||||
"pub_date": "2006-06-16 14:00:00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "4",
|
||||
"model": "fixtures_model_package.article",
|
||||
"fields": {
|
||||
"headline": "Django conquers world!",
|
||||
"pub_date": "2006-06-16 15:00:00"
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user