diff options
| author | François Freitag <mail@franek.fr> | 2020-05-09 19:37:44 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-15 09:14:05 +0200 |
| commit | 2e48cf6bd9499f888a6cebf9f18c92717f1df55c (patch) | |
| tree | e2519b3da5a4f2c979a057a7e5b79e2df637dee9 /tests/fixtures_model_package/fixtures/model_package_fixture2.json | |
| parent | 099bce1bf0b9802b7159beb9260b9b9e344bf497 (diff) | |
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.
Diffstat (limited to 'tests/fixtures_model_package/fixtures/model_package_fixture2.json')
| -rw-r--r-- | tests/fixtures_model_package/fixtures/model_package_fixture2.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/fixtures_model_package/fixtures/model_package_fixture2.json b/tests/fixtures_model_package/fixtures/model_package_fixture2.json new file mode 100644 index 0000000000..a09bc34d62 --- /dev/null +++ b/tests/fixtures_model_package/fixtures/model_package_fixture2.json @@ -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" + } + } +] |
