django/tests
Antoine Catton 53ccffdb8c Refs #16860 -- Fixed password help text when there aren't any validators.
This avoids creating an empty list which is invalid HTML 4.
2015-09-28 15:30:16 -04:00
..
absolute_url_overrides Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
admin_autodiscover Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
admin_changelist Removed redundancy in admin_changelist tests. 2015-09-25 10:23:32 -04:00
admin_checks Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
admin_custom_urls Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00
admin_docs Removed 'Test that' prefix from admindocs tests. 2015-09-07 15:07:47 -04:00
admin_filters Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
admin_inlines Refs #23444 -- Removed InlineAdminForm.original_content_type_id per deprecation timeline. 2015-09-23 19:31:10 -04:00
admin_ordering Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
admin_registration Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
admin_scripts Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
admin_utils Fixed #25348 -- Removed unused gif/png images from contrib.admin. 2015-09-04 08:55:36 -04:00
admin_views Refs #23957 -- Required session verification per deprecation timeline. 2015-09-23 19:31:10 -04:00
admin_widgets Refs #25149 -- Fixed regression in admin datetime widget for timezones on the negative side of UTC. 2015-09-16 13:16:21 -04:00
aggregation Refs #14030 -- Removed backwards compatiblity for old-style aggregates. 2015-09-23 19:31:10 -04:00
aggregation_regress Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
annotations Fixed #24986 -- Added support for annotations in DISTINCT queries. 2015-08-15 08:23:32 -04:00
app_loading Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
apps Refs #22789 -- Removed contrib.webdesign per deprecation timeline. 2015-09-23 19:31:09 -04:00
auth_tests Refs #16860 -- Fixed password help text when there aren't any validators. 2015-09-28 15:30:16 -04:00
backends Refs #14091 -- Fixed connection.queries on SQLite. 2015-09-17 23:01:33 +02:00
base
bash_completion Removed support for syncing apps without migrations per deprecation timeline. 2015-01-18 15:58:06 -05:00
basic Refs #21414 -- Removed Field.related per deprecation timeline. 2015-09-23 19:31:10 -04:00
builtin_server Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
bulk_create Fixed #24509 -- Added Expression support to SQLInsertCompiler 2015-09-22 23:35:24 +10:00
cache Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
check_framework Refs #23813 -- Moved URLconfs into module and tidied docstrings. 2015-09-21 20:10:33 -04:00
choices Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
conditional_processing Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
contenttypes_tests Refs #24099 -- Removed compatibility shim for ContentType.name field. 2015-09-23 19:31:10 -04:00
context_processors Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
createsuperuser Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
csrf_tests Fixed #24496 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN. 2015-09-16 12:21:50 -04:00
custom_columns Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
custom_lookups Fixed #24629 -- Unified Transform and Expression APIs 2015-09-21 19:56:24 +10:00
custom_managers Refs #20625 -- Forwardported tests and release notes for queryset chaining fix. 2015-09-17 19:22:53 -04:00
custom_methods Tweak some examples. 2015-08-22 20:25:42 +02:00
custom_migration_operations Fixed #24093 -- Prevented MigrationWriter to write operation kwargs that are not explicitly deconstructed 2015-01-07 17:29:20 -07:00
custom_pk Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
datatypes Used assertIsInstance in tests. 2015-04-27 08:40:36 -04:00
dates Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
datetimes Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
db_functions Fixed #24629 -- Unified Transform and Expression APIs 2015-09-21 19:56:24 +10:00
db_typecasts Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
dbshell Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql. 2015-08-07 09:33:17 -04:00
decorators Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators. 2015-09-18 19:04:29 -04:00
defer Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
defer_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
delete Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
delete_regress Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
deprecation Refs #21977 -- Removed SimpleTestCase.urls per deprecation timeline. 2015-09-23 19:31:09 -04:00
dispatch Used assertIsInstance in tests. 2015-04-27 08:40:36 -04:00
distinct_on_fields Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
empty
expressions Fixed #24509 -- Added Expression support to SQLInsertCompiler 2015-09-22 23:35:24 +10:00
expressions_case Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
extra_regress Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
field_deconstruction Refs #24590 -- Ensured isolation between autodetector tests 2015-08-28 10:17:34 +10:00
field_defaults
field_subclassing Removed SubfieldBase per deprecation timeline. 2015-09-23 19:31:09 -04:00
file_storage Refs #9893 -- Removed shims for lack of max_length support in file storage per deprecation timeline. 2015-09-23 19:31:10 -04:00
file_uploads Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
files Fixed #24963 -- Added File.seekable() on Python 3. 2015-06-12 10:17:21 -04:00
fixtures Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
fixtures_model_package Removed support for custom SQL per deprecation timeline. 2015-01-17 10:16:06 -05:00
fixtures_regress Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
flatpages_tests Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
force_insert_update Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
foreign_object Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
forms_tests Refs #23162 -- Removed forms.Field._has_changed() method. 2015-09-23 19:31:10 -04:00
from_db_value Refs #9619 -- Fixed failing test case 2015-06-17 20:07:00 +02:00
generic_inline_admin Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
generic_relations Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
generic_relations_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
generic_views Refs #23656 -- Required FormMixin.get_form() form_class parameter to be optional. 2015-09-23 19:31:10 -04:00
get_earliest_or_latest Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
get_object_or_404 Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
get_or_create Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
gis_tests Refs #24152 -- Removed deprecated GeoQuerySet aggregate methods. 2015-09-23 19:31:10 -04:00
handlers Fixed #24829 -- Allowed use of TemplateResponse in view error handlers. 2015-06-17 17:11:50 -04:00
http_utils Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
httpwrappers Fixed #25254 -- Added JsonResponse json_dumps_params parameter. 2015-08-12 10:39:07 -04:00
humanize_tests Moved contrib.humanize tests out of contrib. 2015-02-11 10:19:22 -05:00
i18n Refs #22218 -- Removed conf.urls.patterns() per deprecation timeline. 2015-09-23 19:31:09 -04:00
import_error_package Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:30:46 -05:00
indexes Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
inline_formsets Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
inspectdb Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
introspection Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
invalid_models_tests Fixed #25417 -- Added a field check for invalid default values. 2015-09-18 14:31:36 -04:00
known_related_objects Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
logging_tests Refs #24526 -- Made the django logger handle INFO messages. 2015-09-23 11:33:49 -04:00
lookup Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
m2m_and_m2o Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2m_intermediary Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2m_multiple Tweak some examples. 2015-08-22 20:25:42 +02:00
m2m_recursive
m2m_regress Fixed #24505 -- Fixed clash with hidden m2m fields. 2015-03-26 19:00:37 -04:00
m2m_signals Refs #18586 -- Split up tests/m2m_signals 2015-03-22 13:21:08 +01:00
m2m_through Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
m2m_through_regress Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
m2o_recursive Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
mail Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
managers_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
many_to_many Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
many_to_one Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
many_to_one_null Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
max_lengths Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
messages_tests Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
middleware Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s when Referer = URL. 2015-08-24 19:35:49 -04:00
middleware_exceptions Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
migrate_signals Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
migration_test_data_persistence Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
migrations Refs #23359 -- Removed the migrate --list option per deprecation timeline. 2015-09-23 19:31:10 -04:00
migrations2 Fixed #24743, #24745 -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
model_fields Fixed #24509 -- Added Expression support to SQLInsertCompiler 2015-09-22 23:35:24 +10:00
model_forms Fixed #25410 -- Fixed empty ClearableFileInput crash on Python 2. 2015-09-23 10:26:19 -04:00
model_formsets Fixed #25431 -- Readded inline foreign keys to modelformset instances 2015-09-21 21:30:49 +02:00
model_formsets_regress Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
model_inheritance Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_inheritance_regress Refs #21554 -- Added some assertions to a model_inheritance_regress test. 2015-08-15 19:32:21 -04:00
model_meta Refs #12663 -- Removed deprecated Model._meta methods. 2015-09-23 19:31:09 -04:00
model_options Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_package Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
model_permalink Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
model_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_validation Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
modeladmin Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
multiple_database Refs #24351 -- Removed support for the old allow_migrate() signature per deprecation timeline. 2015-09-23 19:31:09 -04:00
mutually_referential Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
nested_foreign_keys Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
no_models Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
null_fk Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
null_fk_ordering Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
null_queries Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
one_to_one Fixed #25296 -- Prevented model related object cache pollution when create() fails due to an unsaved object. 2015-09-19 20:49:13 -04:00
or_lookups Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
order_with_respect_to Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey. 2015-08-27 09:20:17 -04:00
ordering Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
pagination Fixed #23190 -- Made Paginator.page_range an iterator 2015-07-03 11:34:34 -04:00
postgres_tests Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
prefetch_related Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
project_template Removed support for Python 3.3. 2015-06-18 08:36:50 -04:00
properties
proxy_model_inheritance Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
proxy_models Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
queries Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
queryset_pickle Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
raw_query Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
redirects_tests Moved contrib.redirects tests out of contrib. 2015-02-11 10:19:22 -05:00
requests Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
requirements Added a version requirement to mysqlclient in test requirements. 2015-09-17 15:07:26 -04:00
reserved_names
resolve_url Refs #22384 -- Removed the ability to reverse URLs by dotted path per deprecation timeline. 2015-09-23 19:31:09 -04:00
responses Refs #24121 -- Added meaningful repr() to HttpResponse and subclasses. 2015-07-15 09:01:25 -04:00
reverse_lookup Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
save_delete_hooks
schema Refs #18081 -- Asserted db constraints are created for fk to proxy models. 2015-09-23 14:59:05 -04:00
select_for_update Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
select_related Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
select_related_onetoone Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
select_related_regress Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
serializers Fixed #25468 -- Made DjangoJSONEncoder lazy string aware 2015-09-27 22:37:27 +02:00
servers Fixed #25204 -- Added missing space in runserver logging. 2015-08-01 08:01:24 -04:00
sessions_tests Fixed #22634 -- Made the database-backed session backends more extensible. 2015-08-27 15:00:09 -04:00
settings_tests Refs #23957 -- Required session verification per deprecation timeline. 2015-09-23 19:31:10 -04:00
shortcuts Removed support for passing a context to a generic Template.render(). 2015-09-23 19:31:11 -04:00
signals Added a test for model pre/post_init signals. 2014-11-21 10:39:37 -05:00
signed_cookies_tests Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
signing Refs #22804 -- Made an unsafe value of 'sep' in Signer an exception. 2015-09-23 19:31:11 -04:00
sitemaps_tests Refs #22384 -- Removed the ability to reverse URLs by dotted path per deprecation timeline. 2015-09-23 19:31:09 -04:00
sites_framework Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
sites_tests Fixed reverse sites_tests failures introduced in refs #24834. 2015-06-18 16:25:32 -04:00
staticfiles_tests Prevented staticfiles test from colliding when run in parallel. 2015-09-09 23:01:17 +02:00
str Tweak some examples. 2015-08-22 20:25:42 +02:00
string_lookup Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
swappable_models Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
syndication_tests Refs #13110 -- Fixed mistakes in the new multiple enclosure feed tests 2015-09-19 15:54:33 +02:00
template_backends Removed support for passing a context to a generic Template.render(). 2015-09-23 19:31:11 -04:00
template_loader Fixed #24119, #24120 -- Formalized debug integration for template backends. 2015-05-06 17:33:47 -05:00
template_tests Refs #23913 -- Removed support for a single equals sign in {% if %} tag. 2015-09-23 19:31:11 -04:00
templates Cleaned up template loader tests. 2015-02-24 14:00:02 +01:00
test_client Fixed #25424 -- Use force_str for test client URLs. 2015-09-19 15:05:54 +02:00
test_client_regress Removed dictionary and context_instance parameters for render functions. 2015-09-23 19:31:11 -04:00
test_discovery_sample
test_discovery_sample2 Fixed #23742 -- Added an option to reverse tests order. 2014-11-24 19:24:11 -05:00
test_exceptions Reduced reduce() usage; refs #23796. 2014-11-20 14:31:14 -05:00
test_runner Removed RemovedInDjango110Warning. 2015-09-23 19:31:11 -04:00
test_runner_deprecation_app
test_utils Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
timezones Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
transaction_hooks Fixed #21803 -- Added support for post-commit callbacks 2015-06-30 14:51:00 -04:00
transactions Fixed #24921 -- set_autocommit(False) + ORM queries. 2015-09-21 22:21:53 +02:00
unmanaged_models Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
update Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
update_only_fields Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
urlpatterns_reverse Refs #22384 -- Removed the ability to reverse URLs by dotted path per deprecation timeline. 2015-09-23 19:31:09 -04:00
user_commands Refs #19973 -- Removed optparse support in management commands per deprecation timeline. 2015-09-23 19:31:10 -04:00
utils_tests Refs #23613 -- Removed django.utils.checksums per deprecation timeline. 2015-09-23 19:31:10 -04:00
validation Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
validators Fixed #24636 -- Added model field validation for decimal places and max digits. 2015-09-18 14:30:20 -04:00
version
view_tests Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
wsgi Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
.coveragerc Fixed #25209 -- Removed parallel=True coverage option 2015-08-04 09:32:12 -04:00
README.rst Fixed #23289 -- Added mock as a test dependency. 2014-12-01 16:08:25 -05:00
runtests.py Removed RemovedInDjango110Warning. 2015-09-23 19:31:11 -04:00
test_sqlite.py Added trailing comma. 2015-02-06 12:58:45 +01:00
urls.py

README.rst

To run the test suite::

    $ cd tests
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ PYTHONPATH=..:$PYTHONPATH ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.