mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
10
tests/fixtures/fixtures/db_fixture_1.default.json
vendored
Normal file
10
tests/fixtures/fixtures/db_fixture_1.default.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"pk": "6",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "Who needs more than one database?",
|
||||
"pub_date": "2006-06-16 14:00:00"
|
||||
}
|
||||
}
|
||||
]
|
||||
BIN
tests/fixtures/fixtures/db_fixture_2.default.json.gz
vendored
Normal file
BIN
tests/fixtures/fixtures/db_fixture_2.default.json.gz
vendored
Normal file
Binary file not shown.
10
tests/fixtures/fixtures/db_fixture_3.nosuchdb.json
vendored
Normal file
10
tests/fixtures/fixtures/db_fixture_3.nosuchdb.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"pk": "8",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "There is no spoon.",
|
||||
"pub_date": "2006-06-16 14:00:00"
|
||||
}
|
||||
}
|
||||
]
|
||||
34
tests/fixtures/fixtures/fixture1.json
vendored
Normal file
34
tests/fixtures/fixtures/fixture1.json
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"pk": 1,
|
||||
"model": "sites.site",
|
||||
"fields": {
|
||||
"domain": "example.com",
|
||||
"name": "example.com"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "2",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "Poker has no place on ESPN",
|
||||
"pub_date": "2006-06-16 12:00:00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "3",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "Time to reform copyright",
|
||||
"pub_date": "2006-06-16 13:00:00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": 1,
|
||||
"model": "fixtures.category",
|
||||
"fields": {
|
||||
"description": "Latest news stories",
|
||||
"title": "News Stories"
|
||||
}
|
||||
}
|
||||
]
|
||||
18
tests/fixtures/fixtures/fixture2.json
vendored
Normal file
18
tests/fixtures/fixtures/fixture2.json
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"pk": "3",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "Copyright is fine the way it is",
|
||||
"pub_date": "2006-06-16 14:00:00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "4",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "Django conquers world!",
|
||||
"pub_date": "2006-06-16 15:00:00"
|
||||
}
|
||||
}
|
||||
]
|
||||
11
tests/fixtures/fixtures/fixture2.xml
vendored
Normal file
11
tests/fixtures/fixtures/fixture2.xml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<django-objects version="1.0">
|
||||
<object pk="2" model="fixtures.article">
|
||||
<field type="CharField" name="headline">Poker on TV is great!</field>
|
||||
<field type="DateTimeField" name="pub_date">2006-06-16 11:00:00</field>
|
||||
</object>
|
||||
<object pk="5" model="fixtures.article">
|
||||
<field type="CharField" name="headline">XML identified as leading cause of cancer</field>
|
||||
<field type="DateTimeField" name="pub_date">2006-06-16 16:00:00</field>
|
||||
</object>
|
||||
</django-objects>
|
||||
11
tests/fixtures/fixtures/fixture3.xml
vendored
Normal file
11
tests/fixtures/fixtures/fixture3.xml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<django-objects version="1.0">
|
||||
<object pk="2" model="fixtures.article">
|
||||
<field type="CharField" name="headline">Poker on TV is great!</field>
|
||||
<field type="DateTimeField" name="pub_date">2006-06-16 11:00:00</field>
|
||||
</object>
|
||||
<object pk="5" model="fixtures.article">
|
||||
<field type="CharField" name="headline">XML identified as leading cause of cancer</field>
|
||||
<field type="DateTimeField" name="pub_date">2006-06-16 16:00:00</field>
|
||||
</object>
|
||||
</django-objects>
|
||||
BIN
tests/fixtures/fixtures/fixture4.json.zip
vendored
Normal file
BIN
tests/fixtures/fixtures/fixture4.json.zip
vendored
Normal file
Binary file not shown.
BIN
tests/fixtures/fixtures/fixture5.json.gz
vendored
Normal file
BIN
tests/fixtures/fixtures/fixture5.json.gz
vendored
Normal file
Binary file not shown.
BIN
tests/fixtures/fixtures/fixture5.json.zip
vendored
Normal file
BIN
tests/fixtures/fixtures/fixture5.json.zip
vendored
Normal file
Binary file not shown.
41
tests/fixtures/fixtures/fixture6.json
vendored
Normal file
41
tests/fixtures/fixtures/fixture6.json
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
[
|
||||
{
|
||||
"pk": "1",
|
||||
"model": "fixtures.tag",
|
||||
"fields": {
|
||||
"name": "copyright",
|
||||
"tagged_type": ["fixtures", "article"],
|
||||
"tagged_id": "3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "2",
|
||||
"model": "fixtures.tag",
|
||||
"fields": {
|
||||
"name": "law",
|
||||
"tagged_type": ["fixtures", "article"],
|
||||
"tagged_id": "3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "1",
|
||||
"model": "fixtures.person",
|
||||
"fields": {
|
||||
"name": "Django Reinhardt"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "2",
|
||||
"model": "fixtures.person",
|
||||
"fields": {
|
||||
"name": "Stephane Grappelli"
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "3",
|
||||
"model": "fixtures.person",
|
||||
"fields": {
|
||||
"name": "Prince"
|
||||
}
|
||||
}
|
||||
]
|
||||
27
tests/fixtures/fixtures/fixture7.xml
vendored
Normal file
27
tests/fixtures/fixtures/fixture7.xml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<django-objects version="1.0">
|
||||
<object pk="2" model="fixtures.tag">
|
||||
<field type="CharField" name="name">legal</field>
|
||||
<field to="contenttypes.contenttype" name="tagged_type" rel="ManyToOneRel">
|
||||
<natural>fixtures</natural>
|
||||
<natural>article</natural>
|
||||
</field>
|
||||
<field type="PositiveIntegerField" name="tagged_id">3</field>
|
||||
</object>
|
||||
<object pk="3" model="fixtures.tag">
|
||||
<field type="CharField" name="name">django</field>
|
||||
<field to="contenttypes.contenttype" name="tagged_type" rel="ManyToOneRel">
|
||||
<natural>fixtures</natural>
|
||||
<natural>article</natural>
|
||||
</field>
|
||||
<field type="PositiveIntegerField" name="tagged_id">4</field>
|
||||
</object>
|
||||
<object pk="4" model="fixtures.tag">
|
||||
<field type="CharField" name="name">world domination</field>
|
||||
<field to="contenttypes.contenttype" name="tagged_type" rel="ManyToOneRel">
|
||||
<natural>fixtures</natural>
|
||||
<natural>article</natural>
|
||||
</field>
|
||||
<field type="PositiveIntegerField" name="tagged_id">4</field>
|
||||
</object>
|
||||
</django-objects>
|
||||
32
tests/fixtures/fixtures/fixture8.json
vendored
Normal file
32
tests/fixtures/fixtures/fixture8.json
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"pk": "1",
|
||||
"model": "fixtures.visa",
|
||||
"fields": {
|
||||
"person": ["Django Reinhardt"],
|
||||
"permissions": [
|
||||
["add_user", "auth", "user"],
|
||||
["change_user", "auth", "user"],
|
||||
["delete_user", "auth", "user"]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "2",
|
||||
"model": "fixtures.visa",
|
||||
"fields": {
|
||||
"person": ["Stephane Grappelli"],
|
||||
"permissions": [
|
||||
["add_user", "auth", "user"]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"pk": "3",
|
||||
"model": "fixtures.visa",
|
||||
"fields": {
|
||||
"person": ["Prince"],
|
||||
"permissions": []
|
||||
}
|
||||
}
|
||||
]
|
||||
48
tests/fixtures/fixtures/fixture9.xml
vendored
Normal file
48
tests/fixtures/fixtures/fixture9.xml
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<django-objects version="1.0">
|
||||
<object pk="2" model="fixtures.visa">
|
||||
<field type="CharField" name="person">
|
||||
<natural>Stephane Grappelli</natural>
|
||||
</field>
|
||||
<field to="auth.permission" name="permissions" rel="ManyToManyRel">
|
||||
<object>
|
||||
<natural>add_user</natural>
|
||||
<natural>auth</natural>
|
||||
<natural>user</natural>
|
||||
</object>
|
||||
<object>
|
||||
<natural>delete_user</natural>
|
||||
<natural>auth</natural>
|
||||
<natural>user</natural>
|
||||
</object>
|
||||
</field>
|
||||
</object>
|
||||
<object pk="3" model="fixtures.person">
|
||||
<field type="CharField" name="name">
|
||||
<natural>Artist formerly known as "Prince"</natural>
|
||||
</field>
|
||||
</object>
|
||||
<object pk="3" model="fixtures.visa">
|
||||
<field type="CharField" name="person">
|
||||
<natural>Artist formerly known as "Prince"</natural>
|
||||
</field>
|
||||
<field to="auth.permission" name="permissions" rel="ManyToManyRel">
|
||||
<object>
|
||||
<natural>change_user</natural>
|
||||
<natural>auth</natural>
|
||||
<natural>user</natural>
|
||||
</object>
|
||||
</field>
|
||||
</object>
|
||||
<object pk="1" model="fixtures.book">
|
||||
<field type="CharField" name="name">Music for all ages</field>
|
||||
<field to="fixtures.person" name="authors" rel="ManyToManyRel">
|
||||
<object>
|
||||
<natural>Django Reinhardt</natural>
|
||||
</object>
|
||||
<object>
|
||||
<natural>Artist formerly known as "Prince"</natural>
|
||||
</object>
|
||||
</field>
|
||||
</object>
|
||||
</django-objects>
|
||||
9
tests/fixtures/fixtures/initial_data.json
vendored
Normal file
9
tests/fixtures/fixtures/initial_data.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"pk": "10",
|
||||
"model": "fixtures.book",
|
||||
"fields": {
|
||||
"name": "Achieving self-awareness of Python programs"
|
||||
}
|
||||
}
|
||||
]
|
||||
10
tests/fixtures/fixtures/invalid.json
vendored
Normal file
10
tests/fixtures/fixtures/invalid.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"pk": "1",
|
||||
"model": "fixtures.article",
|
||||
"fields": {
|
||||
"headline": "Breaking news",
|
||||
"pub_date": null
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user