diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt
a
|
b
|
|
7 | 7 | |
8 | 8 | The tests cover: |
9 | 9 | |
10 | | * Models and the database API (``tests/modeltests/``). |
11 | | * Everything else in core Django code (``tests/regressiontests``) |
| 10 | * Models, the database API and everything else in core Django code |
| 11 | (``tests/regressiontests``) |
12 | 12 | * Contrib apps (``django/contrib/<contribapp>/tests``, see below) |
13 | 13 | |
14 | 14 | We appreciate any and all contributions to the test suite! |
… |
… |
|
105 | 105 | ./runtests.py --settings=path.to.settings generic_relations i18n |
106 | 106 | |
107 | 107 | How do you find out the names of individual tests? Look in |
108 | | ``tests/modeltests`` and ``tests/regressiontests`` -- each directory name |
109 | | there is the name of a test. |
| 108 | ``tests/regressiontests`` -- each directory name there is the name of a test. |
110 | 109 | |
111 | 110 | If you just want to run a particular class of tests, you can specify a list of |
112 | 111 | paths to individual test classes. For example, to run the ``TranslationTests`` |
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
a
|
b
|
|
18 | 18 | * With all of this, Django gives you an automatically-generated |
19 | 19 | database-access API; see :doc:`/topics/db/queries`. |
20 | 20 | |
21 | | .. seealso:: |
22 | | |
23 | | A companion to this document is the `official repository of model |
24 | | examples`_. (In the Django source distribution, these examples are in the |
25 | | ``tests/modeltests`` directory.) |
26 | | |
27 | | .. _official repository of model examples: http://code.djangoproject.com/browser/django/trunk/tests/modeltests |
28 | | |
29 | 21 | Quick example |
30 | 22 | ============= |
31 | 23 | |
… |
… |
|
329 | 321 | For sample code, see the `Many-to-one relationship model tests`_. |
330 | 322 | |
331 | 323 | .. _Following relationships backward example: http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects |
332 | | .. _Many-to-one relationship model tests: http://code.djangoproject.com/browser/django/trunk/tests/modeltests/many_to_one |
| 324 | .. _Many-to-one relationship model tests: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/many_to_one |
333 | 325 | |
334 | 326 | Many-to-many relationships |
335 | 327 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
… |
… |
|
379 | 371 | |
380 | 372 | See the `Many-to-many relationship model example`_ for a full example. |
381 | 373 | |
382 | | .. _Many-to-many relationship model example: http://code.djangoproject.com/browser/django/trunk/tests/modeltests/many_to_many/models.py |
| 374 | .. _Many-to-many relationship model example: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/many_to_many/models.py |
383 | 375 | |
384 | 376 | :class:`~django.db.models.ManyToManyField` fields also accept a number of extra |
385 | 377 | arguments which are explained in :ref:`the model field reference |
… |
… |
|
553 | 545 | |
554 | 546 | See the `One-to-one relationship model example`_ for a full example. |
555 | 547 | |
556 | | .. _One-to-one relationship model example: http://code.djangoproject.com/browser/django/trunk/tests/modeltests/one_to_one/models.py |
| 548 | .. _One-to-one relationship model example: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/one_to_one/models.py |
557 | 549 | |
558 | 550 | :class:`~django.db.models.OneToOneField` fields also accept one optional argument |
559 | 551 | described in the :ref:`model field reference <ref-onetoone>`. |
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
a
|
b
|
|
740 | 740 | The `OR lookups examples`_ in the Django unit tests show some possible uses |
741 | 741 | of ``Q``. |
742 | 742 | |
743 | | .. _OR lookups examples: http://code.djangoproject.com/browser/django/trunk/tests/modeltests/or_lookups/tests.py |
| 743 | .. _OR lookups examples: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/or_lookups/tests.py |
744 | 744 | |
745 | 745 | Comparing objects |
746 | 746 | ================= |
diff --git a/tests/modeltests/__init__.py b/tests/modeltests/__init__.py
deleted file mode 100644
diff --git a/tests/modeltests/aggregation/__init__.py b/tests/regressiontests/aggregation/__init__.py
rename from tests/modeltests/aggregation/__init__.py
rename to tests/regressiontests/aggregation/__init__.py
diff --git a/tests/modeltests/aggregation/fixtures/initial_data.json b/tests/regressiontests/aggregation/fixtures/initial_data.json
rename from tests/modeltests/aggregation/fixtures/initial_data.json
rename to tests/regressiontests/aggregation/fixtures/initial_data.json
diff --git a/tests/modeltests/aggregation/models.py b/tests/regressiontests/aggregation/models.py
rename from tests/modeltests/aggregation/models.py
rename to tests/regressiontests/aggregation/models.py
diff --git a/tests/modeltests/aggregation/tests.py b/tests/regressiontests/aggregation/tests.py
rename from tests/modeltests/aggregation/tests.py
rename to tests/regressiontests/aggregation/tests.py
diff --git a/tests/modeltests/basic/__init__.py b/tests/regressiontests/basic/__init__.py
rename from tests/modeltests/basic/__init__.py
rename to tests/regressiontests/basic/__init__.py
diff --git a/tests/modeltests/basic/models.py b/tests/regressiontests/basic/models.py
rename from tests/modeltests/basic/models.py
rename to tests/regressiontests/basic/models.py
diff --git a/tests/modeltests/basic/tests.py b/tests/regressiontests/basic/tests.py
rename from tests/modeltests/basic/tests.py
rename to tests/regressiontests/basic/tests.py
diff --git a/tests/modeltests/choices/__init__.py b/tests/regressiontests/choices/__init__.py
rename from tests/modeltests/choices/__init__.py
rename to tests/regressiontests/choices/__init__.py
diff --git a/tests/modeltests/choices/models.py b/tests/regressiontests/choices/models.py
rename from tests/modeltests/choices/models.py
rename to tests/regressiontests/choices/models.py
diff --git a/tests/modeltests/choices/tests.py b/tests/regressiontests/choices/tests.py
rename from tests/modeltests/choices/tests.py
rename to tests/regressiontests/choices/tests.py
diff --git a/tests/modeltests/custom_columns/__init__.py b/tests/regressiontests/custom_columns/__init__.py
rename from tests/modeltests/custom_columns/__init__.py
rename to tests/regressiontests/custom_columns/__init__.py
diff --git a/tests/modeltests/custom_columns/models.py b/tests/regressiontests/custom_columns/models.py
rename from tests/modeltests/custom_columns/models.py
rename to tests/regressiontests/custom_columns/models.py
diff --git a/tests/modeltests/custom_columns/tests.py b/tests/regressiontests/custom_columns/tests.py
rename from tests/modeltests/custom_columns/tests.py
rename to tests/regressiontests/custom_columns/tests.py
diff --git a/tests/modeltests/custom_managers/__init__.py b/tests/regressiontests/custom_managers/__init__.py
rename from tests/modeltests/custom_managers/__init__.py
rename to tests/regressiontests/custom_managers/__init__.py
diff --git a/tests/modeltests/custom_managers/models.py b/tests/regressiontests/custom_managers/models.py
rename from tests/modeltests/custom_managers/models.py
rename to tests/regressiontests/custom_managers/models.py
diff --git a/tests/modeltests/custom_managers/tests.py b/tests/regressiontests/custom_managers/tests.py
rename from tests/modeltests/custom_managers/tests.py
rename to tests/regressiontests/custom_managers/tests.py
diff --git a/tests/modeltests/custom_methods/__init__.py b/tests/regressiontests/custom_methods/__init__.py
rename from tests/modeltests/custom_methods/__init__.py
rename to tests/regressiontests/custom_methods/__init__.py
diff --git a/tests/modeltests/custom_methods/models.py b/tests/regressiontests/custom_methods/models.py
rename from tests/modeltests/custom_methods/models.py
rename to tests/regressiontests/custom_methods/models.py
diff --git a/tests/modeltests/custom_methods/tests.py b/tests/regressiontests/custom_methods/tests.py
rename from tests/modeltests/custom_methods/tests.py
rename to tests/regressiontests/custom_methods/tests.py
diff --git a/tests/modeltests/custom_pk/__init__.py b/tests/regressiontests/custom_pk/__init__.py
rename from tests/modeltests/custom_pk/__init__.py
rename to tests/regressiontests/custom_pk/__init__.py
diff --git a/tests/modeltests/custom_pk/fields.py b/tests/regressiontests/custom_pk/fields.py
rename from tests/modeltests/custom_pk/fields.py
rename to tests/regressiontests/custom_pk/fields.py
diff --git a/tests/modeltests/custom_pk/models.py b/tests/regressiontests/custom_pk/models.py
rename from tests/modeltests/custom_pk/models.py
rename to tests/regressiontests/custom_pk/models.py
diff --git a/tests/modeltests/custom_pk/tests.py b/tests/regressiontests/custom_pk/tests.py
rename from tests/modeltests/custom_pk/tests.py
rename to tests/regressiontests/custom_pk/tests.py
diff --git a/tests/modeltests/defer/__init__.py b/tests/regressiontests/defer/__init__.py
rename from tests/modeltests/defer/__init__.py
rename to tests/regressiontests/defer/__init__.py
diff --git a/tests/modeltests/defer/models.py b/tests/regressiontests/defer/models.py
rename from tests/modeltests/defer/models.py
rename to tests/regressiontests/defer/models.py
diff --git a/tests/modeltests/defer/tests.py b/tests/regressiontests/defer/tests.py
rename from tests/modeltests/defer/tests.py
rename to tests/regressiontests/defer/tests.py
diff --git a/tests/modeltests/delete/__init__.py b/tests/regressiontests/delete/__init__.py
rename from tests/modeltests/delete/__init__.py
rename to tests/regressiontests/delete/__init__.py
diff --git a/tests/modeltests/delete/models.py b/tests/regressiontests/delete/models.py
rename from tests/modeltests/delete/models.py
rename to tests/regressiontests/delete/models.py
diff --git a/tests/modeltests/delete/tests.py b/tests/regressiontests/delete/tests.py
rename from tests/modeltests/delete/tests.py
rename to tests/regressiontests/delete/tests.py
old
|
new
|
|
1 | 1 | from django.db import models, IntegrityError |
2 | 2 | from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature |
3 | 3 | |
4 | | from modeltests.delete.models import (R, RChild, S, T, U, A, M, MR, MRNull, |
5 | | create_a, get_default_r, User, Avatar, HiddenUser, HiddenUserProfile) |
| 4 | from models import (R, RChild, S, T, U, A, M, MR, MRNull, create_a, |
| 5 | get_default_r, User, Avatar, HiddenUser, HiddenUserProfile) |
6 | 6 | |
7 | 7 | |
8 | 8 | class OnDeleteTests(TestCase): |
diff --git a/tests/modeltests/empty/__init__.py b/tests/regressiontests/empty/__init__.py
rename from tests/modeltests/empty/__init__.py
rename to tests/regressiontests/empty/__init__.py
diff --git a/tests/modeltests/empty/models.py b/tests/regressiontests/empty/models.py
rename from tests/modeltests/empty/models.py
rename to tests/regressiontests/empty/models.py
diff --git a/tests/modeltests/empty/tests.py b/tests/regressiontests/empty/tests.py
rename from tests/modeltests/empty/tests.py
rename to tests/regressiontests/empty/tests.py
diff --git a/tests/modeltests/expressions/__init__.py b/tests/regressiontests/expressions/__init__.py
rename from tests/modeltests/expressions/__init__.py
rename to tests/regressiontests/expressions/__init__.py
diff --git a/tests/modeltests/expressions/models.py b/tests/regressiontests/expressions/models.py
rename from tests/modeltests/expressions/models.py
rename to tests/regressiontests/expressions/models.py
diff --git a/tests/modeltests/expressions/tests.py b/tests/regressiontests/expressions/tests.py
rename from tests/modeltests/expressions/tests.py
rename to tests/regressiontests/expressions/tests.py
diff --git a/tests/modeltests/field_defaults/__init__.py b/tests/regressiontests/field_defaults/__init__.py
rename from tests/modeltests/field_defaults/__init__.py
rename to tests/regressiontests/field_defaults/__init__.py
diff --git a/tests/modeltests/field_defaults/models.py b/tests/regressiontests/field_defaults/models.py
rename from tests/modeltests/field_defaults/models.py
rename to tests/regressiontests/field_defaults/models.py
diff --git a/tests/modeltests/field_defaults/tests.py b/tests/regressiontests/field_defaults/tests.py
rename from tests/modeltests/field_defaults/tests.py
rename to tests/regressiontests/field_defaults/tests.py
diff --git a/tests/modeltests/field_subclassing/__init__.py b/tests/regressiontests/field_subclassing/__init__.py
rename from tests/modeltests/field_subclassing/__init__.py
rename to tests/regressiontests/field_subclassing/__init__.py
diff --git a/tests/modeltests/field_subclassing/fields.py b/tests/regressiontests/field_subclassing/fields.py
rename from tests/modeltests/field_subclassing/fields.py
rename to tests/regressiontests/field_subclassing/fields.py
diff --git a/tests/modeltests/field_subclassing/models.py b/tests/regressiontests/field_subclassing/models.py
rename from tests/modeltests/field_subclassing/models.py
rename to tests/regressiontests/field_subclassing/models.py
diff --git a/tests/modeltests/field_subclassing/tests.py b/tests/regressiontests/field_subclassing/tests.py
rename from tests/modeltests/field_subclassing/tests.py
rename to tests/regressiontests/field_subclassing/tests.py
diff --git a/tests/modeltests/files/__init__.py b/tests/regressiontests/files/__init__.py
rename from tests/modeltests/files/__init__.py
rename to tests/regressiontests/files/__init__.py
diff --git a/tests/modeltests/files/models.py b/tests/regressiontests/files/models.py
rename from tests/modeltests/files/models.py
rename to tests/regressiontests/files/models.py
diff --git a/tests/modeltests/files/tests.py b/tests/regressiontests/files/tests.py
rename from tests/modeltests/files/tests.py
rename to tests/regressiontests/files/tests.py
diff --git a/tests/modeltests/fixtures/__init__.py b/tests/regressiontests/fixtures/__init__.py
rename from tests/modeltests/fixtures/__init__.py
rename to tests/regressiontests/fixtures/__init__.py
diff --git a/tests/modeltests/fixtures/fixtures/db_fixture_1.default.json b/tests/regressiontests/fixtures/fixtures/db_fixture_1.default.json
rename from tests/modeltests/fixtures/fixtures/db_fixture_1.default.json
rename to tests/regressiontests/fixtures/fixtures/db_fixture_1.default.json
diff --git a/tests/modeltests/fixtures/fixtures/db_fixture_2.default.json.gz b/tests/regressiontests/fixtures/fixtures/db_fixture_2.default.json.gz
rename from tests/modeltests/fixtures/fixtures/db_fixture_2.default.json.gz
rename to tests/regressiontests/fixtures/fixtures/db_fixture_2.default.json.gz
diff --git a/tests/modeltests/fixtures/fixtures/db_fixture_3.nosuchdb.json b/tests/regressiontests/fixtures/fixtures/db_fixture_3.nosuchdb.json
rename from tests/modeltests/fixtures/fixtures/db_fixture_3.nosuchdb.json
rename to tests/regressiontests/fixtures/fixtures/db_fixture_3.nosuchdb.json
diff --git a/tests/modeltests/fixtures/fixtures/fixture1.json b/tests/regressiontests/fixtures/fixtures/fixture1.json
rename from tests/modeltests/fixtures/fixtures/fixture1.json
rename to tests/regressiontests/fixtures/fixtures/fixture1.json
diff --git a/tests/modeltests/fixtures/fixtures/fixture2.json b/tests/regressiontests/fixtures/fixtures/fixture2.json
rename from tests/modeltests/fixtures/fixtures/fixture2.json
rename to tests/regressiontests/fixtures/fixtures/fixture2.json
diff --git a/tests/modeltests/fixtures/fixtures/fixture2.xml b/tests/regressiontests/fixtures/fixtures/fixture2.xml
rename from tests/modeltests/fixtures/fixtures/fixture2.xml
rename to tests/regressiontests/fixtures/fixtures/fixture2.xml
diff --git a/tests/modeltests/fixtures/fixtures/fixture3.xml b/tests/regressiontests/fixtures/fixtures/fixture3.xml
rename from tests/modeltests/fixtures/fixtures/fixture3.xml
rename to tests/regressiontests/fixtures/fixtures/fixture3.xml
diff --git a/tests/modeltests/fixtures/fixtures/fixture4.json.zip b/tests/regressiontests/fixtures/fixtures/fixture4.json.zip
rename from tests/modeltests/fixtures/fixtures/fixture4.json.zip
rename to tests/regressiontests/fixtures/fixtures/fixture4.json.zip
diff --git a/tests/modeltests/fixtures/fixtures/fixture5.json.gz b/tests/regressiontests/fixtures/fixtures/fixture5.json.gz
rename from tests/modeltests/fixtures/fixtures/fixture5.json.gz
rename to tests/regressiontests/fixtures/fixtures/fixture5.json.gz
diff --git a/tests/modeltests/fixtures/fixtures/fixture5.json.zip b/tests/regressiontests/fixtures/fixtures/fixture5.json.zip
rename from tests/modeltests/fixtures/fixtures/fixture5.json.zip
rename to tests/regressiontests/fixtures/fixtures/fixture5.json.zip
diff --git a/tests/modeltests/fixtures/fixtures/fixture6.json b/tests/regressiontests/fixtures/fixtures/fixture6.json
rename from tests/modeltests/fixtures/fixtures/fixture6.json
rename to tests/regressiontests/fixtures/fixtures/fixture6.json
diff --git a/tests/modeltests/fixtures/fixtures/fixture7.xml b/tests/regressiontests/fixtures/fixtures/fixture7.xml
rename from tests/modeltests/fixtures/fixtures/fixture7.xml
rename to tests/regressiontests/fixtures/fixtures/fixture7.xml
diff --git a/tests/modeltests/fixtures/fixtures/fixture8.json b/tests/regressiontests/fixtures/fixtures/fixture8.json
rename from tests/modeltests/fixtures/fixtures/fixture8.json
rename to tests/regressiontests/fixtures/fixtures/fixture8.json
diff --git a/tests/modeltests/fixtures/fixtures/fixture9.xml b/tests/regressiontests/fixtures/fixtures/fixture9.xml
rename from tests/modeltests/fixtures/fixtures/fixture9.xml
rename to tests/regressiontests/fixtures/fixtures/fixture9.xml
diff --git a/tests/modeltests/fixtures/fixtures/initial_data.json b/tests/regressiontests/fixtures/fixtures/initial_data.json
rename from tests/modeltests/fixtures/fixtures/initial_data.json
rename to tests/regressiontests/fixtures/fixtures/initial_data.json
diff --git a/tests/modeltests/fixtures/models.py b/tests/regressiontests/fixtures/models.py
rename from tests/modeltests/fixtures/models.py
rename to tests/regressiontests/fixtures/models.py
diff --git a/tests/modeltests/fixtures/tests.py b/tests/regressiontests/fixtures/tests.py
rename from tests/modeltests/fixtures/tests.py
rename to tests/regressiontests/fixtures/tests.py
diff --git a/tests/modeltests/fixtures_model_package/__init__.py b/tests/regressiontests/fixtures_model_package/__init__.py
rename from tests/modeltests/fixtures_model_package/__init__.py
rename to tests/regressiontests/fixtures_model_package/__init__.py
diff --git a/tests/modeltests/fixtures_model_package/fixtures/fixture1.json b/tests/regressiontests/fixtures_model_package/fixtures/fixture1.json
rename from tests/modeltests/fixtures_model_package/fixtures/fixture1.json
rename to tests/regressiontests/fixtures_model_package/fixtures/fixture1.json
diff --git a/tests/modeltests/fixtures_model_package/fixtures/fixture2.json b/tests/regressiontests/fixtures_model_package/fixtures/fixture2.json
rename from tests/modeltests/fixtures_model_package/fixtures/fixture2.json
rename to tests/regressiontests/fixtures_model_package/fixtures/fixture2.json
diff --git a/tests/modeltests/fixtures_model_package/fixtures/fixture2.xml b/tests/regressiontests/fixtures_model_package/fixtures/fixture2.xml
rename from tests/modeltests/fixtures_model_package/fixtures/fixture2.xml
rename to tests/regressiontests/fixtures_model_package/fixtures/fixture2.xml
diff --git a/tests/modeltests/fixtures_model_package/fixtures/initial_data.json b/tests/regressiontests/fixtures_model_package/fixtures/initial_data.json
rename from tests/modeltests/fixtures_model_package/fixtures/initial_data.json
rename to tests/regressiontests/fixtures_model_package/fixtures/initial_data.json
diff --git a/tests/modeltests/fixtures_model_package/models/__init__.py b/tests/regressiontests/fixtures_model_package/models/__init__.py
rename from tests/modeltests/fixtures_model_package/models/__init__.py
rename to tests/regressiontests/fixtures_model_package/models/__init__.py
diff --git a/tests/modeltests/fixtures_model_package/tests.py b/tests/regressiontests/fixtures_model_package/tests.py
rename from tests/modeltests/fixtures_model_package/tests.py
rename to tests/regressiontests/fixtures_model_package/tests.py
diff --git a/tests/modeltests/force_insert_update/__init__.py b/tests/regressiontests/force_insert_update/__init__.py
rename from tests/modeltests/force_insert_update/__init__.py
rename to tests/regressiontests/force_insert_update/__init__.py
diff --git a/tests/modeltests/force_insert_update/models.py b/tests/regressiontests/force_insert_update/models.py
rename from tests/modeltests/force_insert_update/models.py
rename to tests/regressiontests/force_insert_update/models.py
diff --git a/tests/modeltests/force_insert_update/tests.py b/tests/regressiontests/force_insert_update/tests.py
rename from tests/modeltests/force_insert_update/tests.py
rename to tests/regressiontests/force_insert_update/tests.py
diff --git a/tests/modeltests/generic_relations/__init__.py b/tests/regressiontests/generic_relations/__init__.py
rename from tests/modeltests/generic_relations/__init__.py
rename to tests/regressiontests/generic_relations/__init__.py
diff --git a/tests/modeltests/generic_relations/models.py b/tests/regressiontests/generic_relations/models.py
rename from tests/modeltests/generic_relations/models.py
rename to tests/regressiontests/generic_relations/models.py
diff --git a/tests/modeltests/generic_relations/tests.py b/tests/regressiontests/generic_relations/tests.py
rename from tests/modeltests/generic_relations/tests.py
rename to tests/regressiontests/generic_relations/tests.py
diff --git a/tests/modeltests/get_latest/__init__.py b/tests/regressiontests/get_latest/__init__.py
rename from tests/modeltests/get_latest/__init__.py
rename to tests/regressiontests/get_latest/__init__.py
diff --git a/tests/modeltests/get_latest/models.py b/tests/regressiontests/get_latest/models.py
rename from tests/modeltests/get_latest/models.py
rename to tests/regressiontests/get_latest/models.py
diff --git a/tests/modeltests/get_latest/tests.py b/tests/regressiontests/get_latest/tests.py
rename from tests/modeltests/get_latest/tests.py
rename to tests/regressiontests/get_latest/tests.py
diff --git a/tests/modeltests/get_object_or_404/__init__.py b/tests/regressiontests/get_object_or_404/__init__.py
rename from tests/modeltests/get_object_or_404/__init__.py
rename to tests/regressiontests/get_object_or_404/__init__.py
diff --git a/tests/modeltests/get_object_or_404/models.py b/tests/regressiontests/get_object_or_404/models.py
rename from tests/modeltests/get_object_or_404/models.py
rename to tests/regressiontests/get_object_or_404/models.py
diff --git a/tests/modeltests/get_object_or_404/tests.py b/tests/regressiontests/get_object_or_404/tests.py
rename from tests/modeltests/get_object_or_404/tests.py
rename to tests/regressiontests/get_object_or_404/tests.py
diff --git a/tests/modeltests/get_or_create/__init__.py b/tests/regressiontests/get_or_create/__init__.py
rename from tests/modeltests/get_or_create/__init__.py
rename to tests/regressiontests/get_or_create/__init__.py
diff --git a/tests/modeltests/get_or_create/models.py b/tests/regressiontests/get_or_create/models.py
rename from tests/modeltests/get_or_create/models.py
rename to tests/regressiontests/get_or_create/models.py
diff --git a/tests/modeltests/get_or_create/tests.py b/tests/regressiontests/get_or_create/tests.py
rename from tests/modeltests/get_or_create/tests.py
rename to tests/regressiontests/get_or_create/tests.py
diff --git a/tests/modeltests/invalid_models/__init__.py b/tests/regressiontests/invalid_models/__init__.py
rename from tests/modeltests/invalid_models/__init__.py
rename to tests/regressiontests/invalid_models/__init__.py
diff --git a/tests/modeltests/invalid_models/models.py b/tests/regressiontests/invalid_models/models.py
rename from tests/modeltests/invalid_models/models.py
rename to tests/regressiontests/invalid_models/models.py
diff --git a/tests/modeltests/lookup/__init__.py b/tests/regressiontests/lookup/__init__.py
rename from tests/modeltests/lookup/__init__.py
rename to tests/regressiontests/lookup/__init__.py
diff --git a/tests/modeltests/lookup/models.py b/tests/regressiontests/lookup/models.py
rename from tests/modeltests/lookup/models.py
rename to tests/regressiontests/lookup/models.py
diff --git a/tests/modeltests/lookup/tests.py b/tests/regressiontests/lookup/tests.py
rename from tests/modeltests/lookup/tests.py
rename to tests/regressiontests/lookup/tests.py
diff --git a/tests/modeltests/m2m_and_m2o/__init__.py b/tests/regressiontests/m2m_and_m2o/__init__.py
rename from tests/modeltests/m2m_and_m2o/__init__.py
rename to tests/regressiontests/m2m_and_m2o/__init__.py
diff --git a/tests/modeltests/m2m_and_m2o/models.py b/tests/regressiontests/m2m_and_m2o/models.py
rename from tests/modeltests/m2m_and_m2o/models.py
rename to tests/regressiontests/m2m_and_m2o/models.py
diff --git a/tests/modeltests/m2m_and_m2o/tests.py b/tests/regressiontests/m2m_and_m2o/tests.py
rename from tests/modeltests/m2m_and_m2o/tests.py
rename to tests/regressiontests/m2m_and_m2o/tests.py
diff --git a/tests/modeltests/m2m_intermediary/__init__.py b/tests/regressiontests/m2m_intermediary/__init__.py
rename from tests/modeltests/m2m_intermediary/__init__.py
rename to tests/regressiontests/m2m_intermediary/__init__.py
diff --git a/tests/modeltests/m2m_intermediary/models.py b/tests/regressiontests/m2m_intermediary/models.py
rename from tests/modeltests/m2m_intermediary/models.py
rename to tests/regressiontests/m2m_intermediary/models.py
diff --git a/tests/modeltests/m2m_intermediary/tests.py b/tests/regressiontests/m2m_intermediary/tests.py
rename from tests/modeltests/m2m_intermediary/tests.py
rename to tests/regressiontests/m2m_intermediary/tests.py
diff --git a/tests/modeltests/m2m_multiple/__init__.py b/tests/regressiontests/m2m_multiple/__init__.py
rename from tests/modeltests/m2m_multiple/__init__.py
rename to tests/regressiontests/m2m_multiple/__init__.py
diff --git a/tests/modeltests/m2m_multiple/models.py b/tests/regressiontests/m2m_multiple/models.py
rename from tests/modeltests/m2m_multiple/models.py
rename to tests/regressiontests/m2m_multiple/models.py
diff --git a/tests/modeltests/m2m_multiple/tests.py b/tests/regressiontests/m2m_multiple/tests.py
rename from tests/modeltests/m2m_multiple/tests.py
rename to tests/regressiontests/m2m_multiple/tests.py
diff --git a/tests/modeltests/m2m_recursive/__init__.py b/tests/regressiontests/m2m_recursive/__init__.py
rename from tests/modeltests/m2m_recursive/__init__.py
rename to tests/regressiontests/m2m_recursive/__init__.py
diff --git a/tests/modeltests/m2m_recursive/models.py b/tests/regressiontests/m2m_recursive/models.py
rename from tests/modeltests/m2m_recursive/models.py
rename to tests/regressiontests/m2m_recursive/models.py
diff --git a/tests/modeltests/m2m_recursive/tests.py b/tests/regressiontests/m2m_recursive/tests.py
rename from tests/modeltests/m2m_recursive/tests.py
rename to tests/regressiontests/m2m_recursive/tests.py
diff --git a/tests/modeltests/m2m_signals/__init__.py b/tests/regressiontests/m2m_signals/__init__.py
rename from tests/modeltests/m2m_signals/__init__.py
rename to tests/regressiontests/m2m_signals/__init__.py
diff --git a/tests/modeltests/m2m_signals/models.py b/tests/regressiontests/m2m_signals/models.py
rename from tests/modeltests/m2m_signals/models.py
rename to tests/regressiontests/m2m_signals/models.py
diff --git a/tests/modeltests/m2m_signals/tests.py b/tests/regressiontests/m2m_signals/tests.py
rename from tests/modeltests/m2m_signals/tests.py
rename to tests/regressiontests/m2m_signals/tests.py
diff --git a/tests/modeltests/m2m_through/__init__.py b/tests/regressiontests/m2m_through/__init__.py
rename from tests/modeltests/m2m_through/__init__.py
rename to tests/regressiontests/m2m_through/__init__.py
diff --git a/tests/modeltests/m2m_through/models.py b/tests/regressiontests/m2m_through/models.py
rename from tests/modeltests/m2m_through/models.py
rename to tests/regressiontests/m2m_through/models.py
diff --git a/tests/modeltests/m2m_through/tests.py b/tests/regressiontests/m2m_through/tests.py
rename from tests/modeltests/m2m_through/tests.py
rename to tests/regressiontests/m2m_through/tests.py
diff --git a/tests/modeltests/m2o_recursive/__init__.py b/tests/regressiontests/m2o_recursive/__init__.py
rename from tests/modeltests/m2o_recursive/__init__.py
rename to tests/regressiontests/m2o_recursive/__init__.py
diff --git a/tests/modeltests/m2o_recursive/models.py b/tests/regressiontests/m2o_recursive/models.py
rename from tests/modeltests/m2o_recursive/models.py
rename to tests/regressiontests/m2o_recursive/models.py
diff --git a/tests/modeltests/m2o_recursive/tests.py b/tests/regressiontests/m2o_recursive/tests.py
rename from tests/modeltests/m2o_recursive/tests.py
rename to tests/regressiontests/m2o_recursive/tests.py
diff --git a/tests/modeltests/many_to_many/__init__.py b/tests/regressiontests/many_to_many/__init__.py
rename from tests/modeltests/many_to_many/__init__.py
rename to tests/regressiontests/many_to_many/__init__.py
diff --git a/tests/modeltests/many_to_many/models.py b/tests/regressiontests/many_to_many/models.py
rename from tests/modeltests/many_to_many/models.py
rename to tests/regressiontests/many_to_many/models.py
diff --git a/tests/modeltests/many_to_many/tests.py b/tests/regressiontests/many_to_many/tests.py
rename from tests/modeltests/many_to_many/tests.py
rename to tests/regressiontests/many_to_many/tests.py
diff --git a/tests/modeltests/many_to_one/__init__.py b/tests/regressiontests/many_to_one/__init__.py
rename from tests/modeltests/many_to_one/__init__.py
rename to tests/regressiontests/many_to_one/__init__.py
diff --git a/tests/modeltests/many_to_one/models.py b/tests/regressiontests/many_to_one/models.py
rename from tests/modeltests/many_to_one/models.py
rename to tests/regressiontests/many_to_one/models.py
diff --git a/tests/modeltests/many_to_one/tests.py b/tests/regressiontests/many_to_one/tests.py
rename from tests/modeltests/many_to_one/tests.py
rename to tests/regressiontests/many_to_one/tests.py
diff --git a/tests/modeltests/many_to_one_null/__init__.py b/tests/regressiontests/many_to_one_null/__init__.py
rename from tests/modeltests/many_to_one_null/__init__.py
rename to tests/regressiontests/many_to_one_null/__init__.py
diff --git a/tests/modeltests/many_to_one_null/models.py b/tests/regressiontests/many_to_one_null/models.py
rename from tests/modeltests/many_to_one_null/models.py
rename to tests/regressiontests/many_to_one_null/models.py
diff --git a/tests/modeltests/many_to_one_null/tests.py b/tests/regressiontests/many_to_one_null/tests.py
rename from tests/modeltests/many_to_one_null/tests.py
rename to tests/regressiontests/many_to_one_null/tests.py
diff --git a/tests/modeltests/model_forms/__init__.py b/tests/regressiontests/model_forms/__init__.py
rename from tests/modeltests/model_forms/__init__.py
rename to tests/regressiontests/model_forms/__init__.py
diff --git a/tests/modeltests/model_forms/mforms.py b/tests/regressiontests/model_forms/mforms.py
rename from tests/modeltests/model_forms/mforms.py
rename to tests/regressiontests/model_forms/mforms.py
diff --git a/tests/modeltests/model_forms/models.py b/tests/regressiontests/model_forms/models.py
rename from tests/modeltests/model_forms/models.py
rename to tests/regressiontests/model_forms/models.py
diff --git a/tests/modeltests/model_forms/test.png b/tests/regressiontests/model_forms/test.png
rename from tests/modeltests/model_forms/test.png
rename to tests/regressiontests/model_forms/test.png
diff --git a/tests/modeltests/model_forms/test2.png b/tests/regressiontests/model_forms/test2.png
rename from tests/modeltests/model_forms/test2.png
rename to tests/regressiontests/model_forms/test2.png
diff --git a/tests/modeltests/model_forms/tests.py b/tests/regressiontests/model_forms/tests.py
rename from tests/modeltests/model_forms/tests.py
rename to tests/regressiontests/model_forms/tests.py
diff --git a/tests/modeltests/model_formsets/__init__.py b/tests/regressiontests/model_formsets/__init__.py
rename from tests/modeltests/model_formsets/__init__.py
rename to tests/regressiontests/model_formsets/__init__.py
diff --git a/tests/modeltests/model_formsets/models.py b/tests/regressiontests/model_formsets/models.py
rename from tests/modeltests/model_formsets/models.py
rename to tests/regressiontests/model_formsets/models.py
diff --git a/tests/modeltests/model_formsets/tests.py b/tests/regressiontests/model_formsets/tests.py
rename from tests/modeltests/model_formsets/tests.py
rename to tests/regressiontests/model_formsets/tests.py
old
|
new
|
|
9 | 9 | modelformset_factory, modelformset_factory) |
10 | 10 | from django.test import TestCase, skipUnlessDBFeature |
11 | 11 | |
12 | | from modeltests.model_formsets.models import ( |
| 12 | from models import ( |
13 | 13 | Author, BetterAuthor, Book, BookWithCustomPK, Editor, |
14 | 14 | BookWithOptionalAltEditor, AlternateBook, AuthorMeeting, CustomPrimaryKey, |
15 | 15 | Place, Owner, Location, OwnerProfile, Restaurant, Product, Price, |
diff --git a/tests/modeltests/model_inheritance/__init__.py b/tests/regressiontests/model_inheritance/__init__.py
rename from tests/modeltests/model_inheritance/__init__.py
rename to tests/regressiontests/model_inheritance/__init__.py
diff --git a/tests/modeltests/model_inheritance/models.py b/tests/regressiontests/model_inheritance/models.py
rename from tests/modeltests/model_inheritance/models.py
rename to tests/regressiontests/model_inheritance/models.py
diff --git a/tests/modeltests/model_inheritance/tests.py b/tests/regressiontests/model_inheritance/tests.py
rename from tests/modeltests/model_inheritance/tests.py
rename to tests/regressiontests/model_inheritance/tests.py
diff --git a/tests/modeltests/model_inheritance_same_model_name/__init__.py b/tests/regressiontests/model_inheritance_same_model_name/__init__.py
rename from tests/modeltests/model_inheritance_same_model_name/__init__.py
rename to tests/regressiontests/model_inheritance_same_model_name/__init__.py
diff --git a/tests/modeltests/model_inheritance_same_model_name/models.py b/tests/regressiontests/model_inheritance_same_model_name/models.py
rename from tests/modeltests/model_inheritance_same_model_name/models.py
rename to tests/regressiontests/model_inheritance_same_model_name/models.py
old
|
new
|
|
7 | 7 | """ |
8 | 8 | |
9 | 9 | from django.db import models |
10 | | from modeltests.model_inheritance.models import NamedURL |
| 10 | from regressiontests.model_inheritance.models import NamedURL |
11 | 11 | |
12 | 12 | # |
13 | 13 | # Abstract base classes with related models |
diff --git a/tests/modeltests/model_inheritance_same_model_name/tests.py b/tests/regressiontests/model_inheritance_same_model_name/tests.py
rename from tests/modeltests/model_inheritance_same_model_name/tests.py
rename to tests/regressiontests/model_inheritance_same_model_name/tests.py
old
|
new
|
|
1 | 1 | from django.test import TestCase |
2 | | from modeltests.model_inheritance.models import Title |
| 2 | from regressiontests.model_inheritance.models import Title |
3 | 3 | |
4 | 4 | class InheritanceSameModelNameTests(TestCase): |
5 | 5 | |
… |
… |
|
10 | 10 | self.title = Title.objects.create(title='Lorem Ipsum') |
11 | 11 | |
12 | 12 | def test_inheritance_related_name(self): |
13 | | from modeltests.model_inheritance.models import Copy |
| 13 | from regressiontests.model_inheritance.models import Copy |
14 | 14 | self.assertEqual( |
15 | 15 | self.title.attached_model_inheritance_copy_set.create( |
16 | 16 | content='Save $ on V1agr@', |
… |
… |
|
19 | 19 | ), Copy.objects.get(content='Save $ on V1agr@')) |
20 | 20 | |
21 | 21 | def test_inheritance_with_same_model_name(self): |
22 | | from modeltests.model_inheritance_same_model_name.models import Copy |
| 22 | from regressiontests.model_inheritance_same_model_name.models import Copy |
23 | 23 | self.assertEqual( |
24 | 24 | self.title.attached_model_inheritance_same_model_name_copy_set.create( |
25 | 25 | content='The Web framework for perfectionists with deadlines.', |
diff --git a/tests/modeltests/model_package/__init__.py b/tests/regressiontests/model_package/__init__.py
rename from tests/modeltests/model_package/__init__.py
rename to tests/regressiontests/model_package/__init__.py
diff --git a/tests/modeltests/model_package/models/__init__.py b/tests/regressiontests/model_package/models/__init__.py
rename from tests/modeltests/model_package/models/__init__.py
rename to tests/regressiontests/model_package/models/__init__.py
diff --git a/tests/modeltests/model_package/models/article.py b/tests/regressiontests/model_package/models/article.py
rename from tests/modeltests/model_package/models/article.py
rename to tests/regressiontests/model_package/models/article.py
diff --git a/tests/modeltests/model_package/models/publication.py b/tests/regressiontests/model_package/models/publication.py
rename from tests/modeltests/model_package/models/publication.py
rename to tests/regressiontests/model_package/models/publication.py
diff --git a/tests/modeltests/model_package/tests.py b/tests/regressiontests/model_package/tests.py
rename from tests/modeltests/model_package/tests.py
rename to tests/regressiontests/model_package/tests.py
diff --git a/tests/modeltests/mutually_referential/__init__.py b/tests/regressiontests/mutually_referential/__init__.py
rename from tests/modeltests/mutually_referential/__init__.py
rename to tests/regressiontests/mutually_referential/__init__.py
diff --git a/tests/modeltests/mutually_referential/models.py b/tests/regressiontests/mutually_referential/models.py
rename from tests/modeltests/mutually_referential/models.py
rename to tests/regressiontests/mutually_referential/models.py
diff --git a/tests/modeltests/mutually_referential/tests.py b/tests/regressiontests/mutually_referential/tests.py
rename from tests/modeltests/mutually_referential/tests.py
rename to tests/regressiontests/mutually_referential/tests.py
diff --git a/tests/modeltests/one_to_one/__init__.py b/tests/regressiontests/one_to_one/__init__.py
rename from tests/modeltests/one_to_one/__init__.py
rename to tests/regressiontests/one_to_one/__init__.py
diff --git a/tests/modeltests/one_to_one/models.py b/tests/regressiontests/one_to_one/models.py
rename from tests/modeltests/one_to_one/models.py
rename to tests/regressiontests/one_to_one/models.py
diff --git a/tests/modeltests/one_to_one/tests.py b/tests/regressiontests/one_to_one/tests.py
rename from tests/modeltests/one_to_one/tests.py
rename to tests/regressiontests/one_to_one/tests.py
diff --git a/tests/modeltests/or_lookups/__init__.py b/tests/regressiontests/or_lookups/__init__.py
rename from tests/modeltests/or_lookups/__init__.py
rename to tests/regressiontests/or_lookups/__init__.py
diff --git a/tests/modeltests/or_lookups/models.py b/tests/regressiontests/or_lookups/models.py
rename from tests/modeltests/or_lookups/models.py
rename to tests/regressiontests/or_lookups/models.py
diff --git a/tests/modeltests/or_lookups/tests.py b/tests/regressiontests/or_lookups/tests.py
rename from tests/modeltests/or_lookups/tests.py
rename to tests/regressiontests/or_lookups/tests.py
diff --git a/tests/modeltests/order_with_respect_to/__init__.py b/tests/regressiontests/order_with_respect_to/__init__.py
rename from tests/modeltests/order_with_respect_to/__init__.py
rename to tests/regressiontests/order_with_respect_to/__init__.py
diff --git a/tests/modeltests/order_with_respect_to/models.py b/tests/regressiontests/order_with_respect_to/models.py
rename from tests/modeltests/order_with_respect_to/models.py
rename to tests/regressiontests/order_with_respect_to/models.py
diff --git a/tests/modeltests/order_with_respect_to/tests.py b/tests/regressiontests/order_with_respect_to/tests.py
rename from tests/modeltests/order_with_respect_to/tests.py
rename to tests/regressiontests/order_with_respect_to/tests.py
diff --git a/tests/modeltests/ordering/__init__.py b/tests/regressiontests/ordering/__init__.py
rename from tests/modeltests/ordering/__init__.py
rename to tests/regressiontests/ordering/__init__.py
diff --git a/tests/modeltests/ordering/models.py b/tests/regressiontests/ordering/models.py
rename from tests/modeltests/ordering/models.py
rename to tests/regressiontests/ordering/models.py
diff --git a/tests/modeltests/ordering/tests.py b/tests/regressiontests/ordering/tests.py
rename from tests/modeltests/ordering/tests.py
rename to tests/regressiontests/ordering/tests.py
diff --git a/tests/modeltests/pagination/__init__.py b/tests/regressiontests/pagination/__init__.py
rename from tests/modeltests/pagination/__init__.py
rename to tests/regressiontests/pagination/__init__.py
diff --git a/tests/modeltests/pagination/models.py b/tests/regressiontests/pagination/models.py
rename from tests/modeltests/pagination/models.py
rename to tests/regressiontests/pagination/models.py
diff --git a/tests/modeltests/pagination/tests.py b/tests/regressiontests/pagination/tests.py
rename from tests/modeltests/pagination/tests.py
rename to tests/regressiontests/pagination/tests.py
diff --git a/tests/modeltests/properties/__init__.py b/tests/regressiontests/properties/__init__.py
rename from tests/modeltests/properties/__init__.py
rename to tests/regressiontests/properties/__init__.py
diff --git a/tests/modeltests/properties/models.py b/tests/regressiontests/properties/models.py
rename from tests/modeltests/properties/models.py
rename to tests/regressiontests/properties/models.py
diff --git a/tests/modeltests/properties/tests.py b/tests/regressiontests/properties/tests.py
rename from tests/modeltests/properties/tests.py
rename to tests/regressiontests/properties/tests.py
diff --git a/tests/modeltests/proxy_model_inheritance/__init__.py b/tests/regressiontests/proxy_model_inheritance/__init__.py
rename from tests/modeltests/proxy_model_inheritance/__init__.py
rename to tests/regressiontests/proxy_model_inheritance/__init__.py
diff --git a/tests/modeltests/proxy_model_inheritance/app1/__init__.py b/tests/regressiontests/proxy_model_inheritance/app1/__init__.py
rename from tests/modeltests/proxy_model_inheritance/app1/__init__.py
rename to tests/regressiontests/proxy_model_inheritance/app1/__init__.py
diff --git a/tests/modeltests/proxy_model_inheritance/app1/models.py b/tests/regressiontests/proxy_model_inheritance/app1/models.py
rename from tests/modeltests/proxy_model_inheritance/app1/models.py
rename to tests/regressiontests/proxy_model_inheritance/app1/models.py
diff --git a/tests/modeltests/proxy_model_inheritance/app2/__init__.py b/tests/regressiontests/proxy_model_inheritance/app2/__init__.py
rename from tests/modeltests/proxy_model_inheritance/app2/__init__.py
rename to tests/regressiontests/proxy_model_inheritance/app2/__init__.py
diff --git a/tests/modeltests/proxy_model_inheritance/app2/models.py b/tests/regressiontests/proxy_model_inheritance/app2/models.py
rename from tests/modeltests/proxy_model_inheritance/app2/models.py
rename to tests/regressiontests/proxy_model_inheritance/app2/models.py
diff --git a/tests/modeltests/proxy_model_inheritance/models.py b/tests/regressiontests/proxy_model_inheritance/models.py
rename from tests/modeltests/proxy_model_inheritance/models.py
rename to tests/regressiontests/proxy_model_inheritance/models.py
diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/regressiontests/proxy_model_inheritance/tests.py
rename from tests/modeltests/proxy_model_inheritance/tests.py
rename to tests/regressiontests/proxy_model_inheritance/tests.py
diff --git a/tests/modeltests/proxy_models/__init__.py b/tests/regressiontests/proxy_models/__init__.py
rename from tests/modeltests/proxy_models/__init__.py
rename to tests/regressiontests/proxy_models/__init__.py
diff --git a/tests/modeltests/proxy_models/fixtures/mypeople.json b/tests/regressiontests/proxy_models/fixtures/mypeople.json
rename from tests/modeltests/proxy_models/fixtures/mypeople.json
rename to tests/regressiontests/proxy_models/fixtures/mypeople.json
diff --git a/tests/modeltests/proxy_models/models.py b/tests/regressiontests/proxy_models/models.py
rename from tests/modeltests/proxy_models/models.py
rename to tests/regressiontests/proxy_models/models.py
diff --git a/tests/modeltests/proxy_models/tests.py b/tests/regressiontests/proxy_models/tests.py
rename from tests/modeltests/proxy_models/tests.py
rename to tests/regressiontests/proxy_models/tests.py
diff --git a/tests/modeltests/raw_query/__init__.py b/tests/regressiontests/raw_query/__init__.py
rename from tests/modeltests/raw_query/__init__.py
rename to tests/regressiontests/raw_query/__init__.py
diff --git a/tests/modeltests/raw_query/fixtures/raw_query_books.json b/tests/regressiontests/raw_query/fixtures/raw_query_books.json
rename from tests/modeltests/raw_query/fixtures/raw_query_books.json
rename to tests/regressiontests/raw_query/fixtures/raw_query_books.json
diff --git a/tests/modeltests/raw_query/models.py b/tests/regressiontests/raw_query/models.py
rename from tests/modeltests/raw_query/models.py
rename to tests/regressiontests/raw_query/models.py
diff --git a/tests/modeltests/raw_query/tests.py b/tests/regressiontests/raw_query/tests.py
rename from tests/modeltests/raw_query/tests.py
rename to tests/regressiontests/raw_query/tests.py
diff --git a/tests/modeltests/reserved_names/__init__.py b/tests/regressiontests/reserved_names/__init__.py
rename from tests/modeltests/reserved_names/__init__.py
rename to tests/regressiontests/reserved_names/__init__.py
diff --git a/tests/modeltests/reserved_names/models.py b/tests/regressiontests/reserved_names/models.py
rename from tests/modeltests/reserved_names/models.py
rename to tests/regressiontests/reserved_names/models.py
diff --git a/tests/modeltests/reserved_names/tests.py b/tests/regressiontests/reserved_names/tests.py
rename from tests/modeltests/reserved_names/tests.py
rename to tests/regressiontests/reserved_names/tests.py
diff --git a/tests/modeltests/reverse_lookup/__init__.py b/tests/regressiontests/reverse_lookup/__init__.py
rename from tests/modeltests/reverse_lookup/__init__.py
rename to tests/regressiontests/reverse_lookup/__init__.py
diff --git a/tests/modeltests/reverse_lookup/models.py b/tests/regressiontests/reverse_lookup/models.py
rename from tests/modeltests/reverse_lookup/models.py
rename to tests/regressiontests/reverse_lookup/models.py
diff --git a/tests/modeltests/reverse_lookup/tests.py b/tests/regressiontests/reverse_lookup/tests.py
rename from tests/modeltests/reverse_lookup/tests.py
rename to tests/regressiontests/reverse_lookup/tests.py
diff --git a/tests/modeltests/save_delete_hooks/__init__.py b/tests/regressiontests/save_delete_hooks/__init__.py
rename from tests/modeltests/save_delete_hooks/__init__.py
rename to tests/regressiontests/save_delete_hooks/__init__.py
diff --git a/tests/modeltests/save_delete_hooks/models.py b/tests/regressiontests/save_delete_hooks/models.py
rename from tests/modeltests/save_delete_hooks/models.py
rename to tests/regressiontests/save_delete_hooks/models.py
diff --git a/tests/modeltests/save_delete_hooks/tests.py b/tests/regressiontests/save_delete_hooks/tests.py
rename from tests/modeltests/save_delete_hooks/tests.py
rename to tests/regressiontests/save_delete_hooks/tests.py
diff --git a/tests/modeltests/select_for_update/__init__.py b/tests/regressiontests/select_for_update/__init__.py
rename from tests/modeltests/select_for_update/__init__.py
rename to tests/regressiontests/select_for_update/__init__.py
diff --git a/tests/modeltests/select_for_update/models.py b/tests/regressiontests/select_for_update/models.py
rename from tests/modeltests/select_for_update/models.py
rename to tests/regressiontests/select_for_update/models.py
diff --git a/tests/modeltests/select_for_update/tests.py b/tests/regressiontests/select_for_update/tests.py
rename from tests/modeltests/select_for_update/tests.py
rename to tests/regressiontests/select_for_update/tests.py
diff --git a/tests/modeltests/select_related/__init__.py b/tests/regressiontests/select_related/__init__.py
rename from tests/modeltests/select_related/__init__.py
rename to tests/regressiontests/select_related/__init__.py
diff --git a/tests/modeltests/select_related/models.py b/tests/regressiontests/select_related/models.py
rename from tests/modeltests/select_related/models.py
rename to tests/regressiontests/select_related/models.py
diff --git a/tests/modeltests/select_related/tests.py b/tests/regressiontests/select_related/tests.py
rename from tests/modeltests/select_related/tests.py
rename to tests/regressiontests/select_related/tests.py
diff --git a/tests/modeltests/serializers/__init__.py b/tests/regressiontests/serializers/__init__.py
rename from tests/modeltests/serializers/__init__.py
rename to tests/regressiontests/serializers/__init__.py
diff --git a/tests/modeltests/serializers/models.py b/tests/regressiontests/serializers/models.py
rename from tests/modeltests/serializers/models.py
rename to tests/regressiontests/serializers/models.py
diff --git a/tests/modeltests/serializers/tests.py b/tests/regressiontests/serializers/tests.py
rename from tests/modeltests/serializers/tests.py
rename to tests/regressiontests/serializers/tests.py
diff --git a/tests/modeltests/signals/__init__.py b/tests/regressiontests/signals/__init__.py
rename from tests/modeltests/signals/__init__.py
rename to tests/regressiontests/signals/__init__.py
diff --git a/tests/modeltests/signals/models.py b/tests/regressiontests/signals/models.py
rename from tests/modeltests/signals/models.py
rename to tests/regressiontests/signals/models.py
diff --git a/tests/modeltests/signals/tests.py b/tests/regressiontests/signals/tests.py
rename from tests/modeltests/signals/tests.py
rename to tests/regressiontests/signals/tests.py
diff --git a/tests/modeltests/str/__init__.py b/tests/regressiontests/str/__init__.py
rename from tests/modeltests/str/__init__.py
rename to tests/regressiontests/str/__init__.py
diff --git a/tests/modeltests/str/models.py b/tests/regressiontests/str/models.py
rename from tests/modeltests/str/models.py
rename to tests/regressiontests/str/models.py
diff --git a/tests/modeltests/str/tests.py b/tests/regressiontests/str/tests.py
rename from tests/modeltests/str/tests.py
rename to tests/regressiontests/str/tests.py
diff --git a/tests/modeltests/test_client/__init__.py b/tests/regressiontests/test_client/__init__.py
rename from tests/modeltests/test_client/__init__.py
rename to tests/regressiontests/test_client/__init__.py
diff --git a/tests/modeltests/test_client/fixtures/testdata.json b/tests/regressiontests/test_client/fixtures/testdata.json
rename from tests/modeltests/test_client/fixtures/testdata.json
rename to tests/regressiontests/test_client/fixtures/testdata.json
diff --git a/tests/modeltests/test_client/models.py b/tests/regressiontests/test_client/models.py
rename from tests/modeltests/test_client/models.py
rename to tests/regressiontests/test_client/models.py
diff --git a/tests/modeltests/test_client/tests.py b/tests/regressiontests/test_client/tests.py
rename from tests/modeltests/test_client/tests.py
rename to tests/regressiontests/test_client/tests.py
diff --git a/tests/modeltests/test_client/urls.py b/tests/regressiontests/test_client/urls.py
rename from tests/modeltests/test_client/urls.py
rename to tests/regressiontests/test_client/urls.py
diff --git a/tests/modeltests/test_client/views.py b/tests/regressiontests/test_client/views.py
rename from tests/modeltests/test_client/views.py
rename to tests/regressiontests/test_client/views.py
old
|
new
|
|
151 | 151 | name='Permissions Template') |
152 | 152 | c = Context({'user': request.user}) |
153 | 153 | return HttpResponse(t.render(c)) |
154 | | permission_protected_view = permission_required('modeltests.test_perm')(permission_protected_view) |
| 154 | permission_protected_view = permission_required('regressiontests.test_perm')(permission_protected_view) |
155 | 155 | |
156 | 156 | class _ViewManager(object): |
157 | 157 | @method_decorator(login_required) |
… |
… |
|
162 | 162 | c = Context({'user': request.user}) |
163 | 163 | return HttpResponse(t.render(c)) |
164 | 164 | |
165 | | @method_decorator(permission_required('modeltests.test_perm')) |
| 165 | @method_decorator(permission_required('regressiontests.test_perm')) |
166 | 166 | def permission_protected_view(self, request): |
167 | 167 | t = Template('This is a permission protected test using a method. ' |
168 | 168 | 'Username is {{ user.username }}. ' |
diff --git a/tests/modeltests/transactions/__init__.py b/tests/regressiontests/transactions/__init__.py
rename from tests/modeltests/transactions/__init__.py
rename to tests/regressiontests/transactions/__init__.py
diff --git a/tests/modeltests/transactions/models.py b/tests/regressiontests/transactions/models.py
rename from tests/modeltests/transactions/models.py
rename to tests/regressiontests/transactions/models.py
diff --git a/tests/modeltests/transactions/tests.py b/tests/regressiontests/transactions/tests.py
rename from tests/modeltests/transactions/tests.py
rename to tests/regressiontests/transactions/tests.py
diff --git a/tests/modeltests/unmanaged_models/__init__.py b/tests/regressiontests/unmanaged_models/__init__.py
rename from tests/modeltests/unmanaged_models/__init__.py
rename to tests/regressiontests/unmanaged_models/__init__.py
diff --git a/tests/modeltests/unmanaged_models/models.py b/tests/regressiontests/unmanaged_models/models.py
rename from tests/modeltests/unmanaged_models/models.py
rename to tests/regressiontests/unmanaged_models/models.py
diff --git a/tests/modeltests/unmanaged_models/tests.py b/tests/regressiontests/unmanaged_models/tests.py
rename from tests/modeltests/unmanaged_models/tests.py
rename to tests/regressiontests/unmanaged_models/tests.py
diff --git a/tests/modeltests/update/__init__.py b/tests/regressiontests/update/__init__.py
rename from tests/modeltests/update/__init__.py
rename to tests/regressiontests/update/__init__.py
diff --git a/tests/modeltests/update/models.py b/tests/regressiontests/update/models.py
rename from tests/modeltests/update/models.py
rename to tests/regressiontests/update/models.py
diff --git a/tests/modeltests/update/tests.py b/tests/regressiontests/update/tests.py
rename from tests/modeltests/update/tests.py
rename to tests/regressiontests/update/tests.py
diff --git a/tests/modeltests/user_commands/__init__.py b/tests/regressiontests/user_commands/__init__.py
rename from tests/modeltests/user_commands/__init__.py
rename to tests/regressiontests/user_commands/__init__.py
diff --git a/tests/modeltests/user_commands/management/__init__.py b/tests/regressiontests/user_commands/management/__init__.py
rename from tests/modeltests/user_commands/management/__init__.py
rename to tests/regressiontests/user_commands/management/__init__.py
diff --git a/tests/modeltests/user_commands/management/commands/__init__.py b/tests/regressiontests/user_commands/management/commands/__init__.py
rename from tests/modeltests/user_commands/management/commands/__init__.py
rename to tests/regressiontests/user_commands/management/commands/__init__.py
diff --git a/tests/modeltests/user_commands/management/commands/dance.py b/tests/regressiontests/user_commands/management/commands/dance.py
rename from tests/modeltests/user_commands/management/commands/dance.py
rename to tests/regressiontests/user_commands/management/commands/dance.py
diff --git a/tests/modeltests/user_commands/models.py b/tests/regressiontests/user_commands/models.py
rename from tests/modeltests/user_commands/models.py
rename to tests/regressiontests/user_commands/models.py
diff --git a/tests/modeltests/user_commands/tests.py b/tests/regressiontests/user_commands/tests.py
rename from tests/modeltests/user_commands/tests.py
rename to tests/regressiontests/user_commands/tests.py
diff --git a/tests/modeltests/validation/__init__.py b/tests/regressiontests/validation/__init__.py
rename from tests/modeltests/validation/__init__.py
rename to tests/regressiontests/validation/__init__.py
diff --git a/tests/modeltests/validation/models.py b/tests/regressiontests/validation/models.py
rename from tests/modeltests/validation/models.py
rename to tests/regressiontests/validation/models.py
diff --git a/tests/modeltests/validation/test_custom_messages.py b/tests/regressiontests/validation/test_custom_messages.py
rename from tests/modeltests/validation/test_custom_messages.py
rename to tests/regressiontests/validation/test_custom_messages.py
old
|
new
|
|
1 | | from modeltests.validation import ValidationTestCase |
| 1 | from regressiontests.validation import ValidationTestCase |
2 | 2 | from models import CustomMessagesModel |
3 | 3 | |
4 | 4 | |
diff --git a/tests/modeltests/validation/test_unique.py b/tests/regressiontests/validation/test_unique.py
rename from tests/modeltests/validation/test_unique.py
rename to tests/regressiontests/validation/test_unique.py
diff --git a/tests/modeltests/validation/tests.py b/tests/regressiontests/validation/tests.py
rename from tests/modeltests/validation/tests.py
rename to tests/regressiontests/validation/tests.py
old
|
new
|
|
1 | 1 | from django import forms |
2 | 2 | from django.test import TestCase |
3 | 3 | from django.core.exceptions import NON_FIELD_ERRORS |
4 | | from modeltests.validation import ValidationTestCase |
5 | | from modeltests.validation.models import Author, Article, ModelToValidate |
| 4 | from regressiontests.validation import ValidationTestCase |
| 5 | from regressiontests.validation.models import Author, Article, ModelToValidate |
6 | 6 | |
7 | 7 | # Import other tests for this package. |
8 | | from modeltests.validation.validators import TestModelsWithValidators |
9 | | from modeltests.validation.test_unique import (GetUniqueCheckTests, |
| 8 | from regressiontests.validation.validators import TestModelsWithValidators |
| 9 | from regressiontests.validation.test_unique import (GetUniqueCheckTests, |
10 | 10 | PerformUniqueChecksTest) |
11 | | from modeltests.validation.test_custom_messages import CustomMessagesTest |
| 11 | from regressiontests.validation.test_custom_messages import CustomMessagesTest |
12 | 12 | |
13 | 13 | |
14 | 14 | class BaseModelValidationTests(ValidationTestCase): |
diff --git a/tests/modeltests/validation/validators.py b/tests/regressiontests/validation/validators.py
rename from tests/modeltests/validation/validators.py
rename to tests/regressiontests/validation/validators.py
old
|
new
|
|
1 | 1 | from django.utils.unittest import TestCase |
2 | 2 | |
3 | | from modeltests.validation import ValidationTestCase |
| 3 | from regressiontests.validation import ValidationTestCase |
4 | 4 | from models import * |
5 | 5 | |
6 | 6 | |
diff --git a/tests/modeltests/validators/__init__.py b/tests/regressiontests/validators/__init__.py
rename from tests/modeltests/validators/__init__.py
rename to tests/regressiontests/validators/__init__.py
diff --git a/tests/modeltests/validators/models.py b/tests/regressiontests/validators/models.py
rename from tests/modeltests/validators/models.py
rename to tests/regressiontests/validators/models.py
diff --git a/tests/modeltests/validators/tests.py b/tests/regressiontests/validators/tests.py
rename from tests/modeltests/validators/tests.py
rename to tests/regressiontests/validators/tests.py
diff --git a/tests/runtests.py b/tests/runtests.py
a
|
b
|
|
5 | 5 | from django.utils import unittest |
6 | 6 | |
7 | 7 | CONTRIB_DIR_NAME = 'django.contrib' |
8 | | MODEL_TESTS_DIR_NAME = 'modeltests' |
9 | 8 | REGRESSION_TESTS_DIR_NAME = 'regressiontests' |
10 | 9 | |
11 | 10 | TEST_TEMPLATE_DIR = 'templates' |
12 | 11 | |
13 | 12 | CONTRIB_DIR = os.path.dirname(contrib.__file__) |
14 | | MODEL_TEST_DIR = os.path.join(os.path.dirname(__file__), MODEL_TESTS_DIR_NAME) |
15 | 13 | REGRESSION_TEST_DIR = os.path.join(os.path.dirname(__file__), REGRESSION_TESTS_DIR_NAME) |
16 | 14 | |
17 | 15 | REGRESSION_SUBDIRS_TO_SKIP = ['locale'] |
… |
… |
|
39 | 37 | |
40 | 38 | def get_test_modules(): |
41 | 39 | modules = [] |
42 | | for loc, dirpath in (MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR): |
| 40 | for loc, dirpath in (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR): |
43 | 41 | for f in os.listdir(dirpath): |
44 | 42 | if f.startswith('__init__') or f.startswith('.') or \ |
45 | 43 | f.startswith('sql') or f.startswith('invalid') or \ |
… |
… |
|
50 | 48 | |
51 | 49 | def get_invalid_modules(): |
52 | 50 | modules = [] |
53 | | for loc, dirpath in (MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR): |
| 51 | for loc, dirpath in (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR): |
54 | 52 | for f in os.listdir(dirpath): |
55 | 53 | if f.startswith('__init__') or f.startswith('.') or f.startswith('sql'): |
56 | 54 | continue |
diff --git a/tests/urls.py b/tests/urls.py
a
|
b
|
|
3 | 3 | |
4 | 4 | urlpatterns = patterns('', |
5 | 5 | # test_client modeltest urls |
6 | | (r'^test_client/', include('modeltests.test_client.urls')), |
| 6 | (r'^test_client/', include('regressiontests.test_client.urls')), |
7 | 7 | (r'^test_client_regress/', include('regressiontests.test_client_regress.urls')), |
8 | 8 | |
9 | 9 | # File upload test views |