René's URL Explorer Experiment


Title: Unit tests | Django documentation | Django

Open Graph Title: Unit tests | Django documentation

Open Graph Description: The web framework for perfectionists with deadlines.

Keywords:

Opengraph URL: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/

X: djangoproject

direct link

Domain: docs.djangoproject.com

NoneIE=edge
ROBOTSALL
MSSmartTagsPreventParsingtrue
CopyrightDjango Software Foundation
fediverse:creator@django@fosstodon.org
msapplication-TileColor#113228
msapplication-TileImagehttps://static.djangoproject.com/img/icon-tile.b01ac0ef9f67.png
theme-color#0C4B33
og:imagehttps://static.djangoproject.com/img/logos/django-logo-negative.1d528e2cb5fb.png
og:image:altDjango logo
og:image:width1200
og:image:height546
og:image:typeimage/png
og:site_nameDjango Project
twitter:creatordjangoproject
twitter:cardsummary

Links:

Skip to main contenthttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#main-content
Djangohttps://www.djangoproject.com/
Overviewhttps://www.djangoproject.com/start/overview/
Downloadhttps://www.djangoproject.com/download/
Documentationhttps://docs.djangoproject.com/
Newshttps://www.djangoproject.com/weblog/
Codehttps://github.com/django/django
Issueshttps://code.djangoproject.com/
Communityhttps://www.djangoproject.com/community/
Foundationhttps://www.djangoproject.com/foundation/
♥ Donatehttps://www.djangoproject.com/fundraising/
Documentationhttps://docs.djangoproject.com/en/dev/
Getting Help https://docs.djangoproject.com/en/dev/faq/help/
6.1https://docs.djangoproject.com/en/6.1/internals/contributing/writing-code/unit-tests/
6.0https://docs.djangoproject.com/en/6.0/internals/contributing/writing-code/unit-tests/
5.2https://docs.djangoproject.com/en/5.2/internals/contributing/writing-code/unit-tests/
5.1https://docs.djangoproject.com/en/5.1/internals/contributing/writing-code/unit-tests/
5.0https://docs.djangoproject.com/en/5.0/internals/contributing/writing-code/unit-tests/
4.2https://docs.djangoproject.com/en/4.2/internals/contributing/writing-code/unit-tests/
4.1https://docs.djangoproject.com/en/4.1/internals/contributing/writing-code/unit-tests/
4.0https://docs.djangoproject.com/en/4.0/internals/contributing/writing-code/unit-tests/
3.2https://docs.djangoproject.com/en/3.2/internals/contributing/writing-code/unit-tests/
3.1https://docs.djangoproject.com/en/3.1/internals/contributing/writing-code/unit-tests/
3.0https://docs.djangoproject.com/en/3.0/internals/contributing/writing-code/unit-tests/
2.2https://docs.djangoproject.com/en/2.2/internals/contributing/writing-code/unit-tests/
2.1https://docs.djangoproject.com/en/2.1/internals/contributing/writing-code/unit-tests/
2.0https://docs.djangoproject.com/en/2.0/internals/contributing/writing-code/unit-tests/
1.11https://docs.djangoproject.com/en/1.11/internals/contributing/writing-code/unit-tests/
1.10https://docs.djangoproject.com/en/1.10/internals/contributing/writing-code/unit-tests/
1.9https://docs.djangoproject.com/en/1.9/internals/contributing/writing-code/unit-tests/
1.8https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/unit-tests/
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#top
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#unit-tests
Writing and running testshttps://docs.djangoproject.com/en/dev/topics/testing/overview/
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-unit-tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#quickstart
fork Django on GitHubhttps://github.com/django/django/fork
contributing tutorialhttps://docs.djangoproject.com/en/dev/intro/contributing/
Running all the testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-unit-tests-dependencies
Using another settings modulehttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-unit-tests-settings
Troubleshootinghttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#troubleshooting-unit-tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-tests-using-tox
Toxhttps://tox.wiki/
import sortinghttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#coding-style-imports
documentation spelling checkerhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-documentation/#documentation-spelling-check
code formattinghttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#coding-style-python
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#testing-other-python-versions-and-database-backends
create and provide your own test settingshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-unit-tests-settings
DJANGO_SETTINGS_MODULEhttps://docs.djangoproject.com/en/dev/topics/settings/#envvar-DJANGO_SETTINGS_MODULE
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-javascript-tests
JavaScript unit testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/javascript/#javascript-tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-tests-using-django-docker-box
django-docker-boxhttps://github.com/django/django-docker-box/
django-docker-boxhttps://github.com/django/django-docker-box/
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#using-another-settings-module
PYTHONPATHhttps://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
DATABASEShttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-DATABASES
USERhttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-USER
PASSWORDhttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-PASSWORD
USERhttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-USER
NAMEhttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-NAME
DATABASEShttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-DATABASES
CHARSEThttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-TEST_CHARSET
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-only-some-of-the-tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-selenium-tests
seleniumhttps://pypi.org/project/selenium/
selenium.webdriverhttps://github.com/SeleniumHQ/selenium/tree/trunk/py/selenium/webdriver
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#screenshot-tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-all-the-tests
aiosmtpdhttps://pypi.org/project/aiosmtpd/
argon2-cffihttps://pypi.org/project/argon2-cffi/
asgirefhttps://pypi.org/project/asgiref/
bcrypthttps://pypi.org/project/bcrypt/
coloramahttps://pypi.org/project/colorama/
docutilshttps://pypi.org/project/docutils/
geoip2https://pypi.org/project/geoip2/
Jinja2https://pypi.org/project/Jinja2/
numpyhttps://pypi.org/project/numpy/
Pillowhttps://pypi.org/project/Pillow/
PyYAMLhttps://pypi.org/project/PyYAML/
pywatchmanhttps://pypi.org/project/pywatchman/
redishttps://pypi.org/project/redis/
pymemcachehttps://pypi.org/project/pymemcache/
supported Python bindinghttps://memcached.org/
gettexthttps://www.gnu.org/software/gettext/manual/gettext.html
gettext on Windowshttps://docs.djangoproject.com/en/dev/topics/i18n/translation/#gettext-on-windows
seleniumhttps://pypi.org/project/selenium/
sqlparsehttps://pypi.org/project/sqlparse/
tblibhttps://pypi.org/project/tblib/
pip requirements fileshttps://pip.pypa.io/en/latest/user_guide/#requirements-files
CACHEShttps://docs.djangoproject.com/en/dev/ref/settings/#std-setting-CACHES
set up a spatial database and install the Geospatial librarieshttps://docs.djangoproject.com/en/dev/ref/contrib/gis/install/
Watchmanhttps://facebook.github.io/watchman/
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage
testing code coveragehttps://docs.djangoproject.com/en/dev/topics/testing/advanced/#topics-testing-code-coverage
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage-on-pull-requests
diff-coverhttps://github.com/Bachmann1234/diff_cover
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#contrib-apps
tests/https://github.com/django/django/blob/main/tests/
tests/auth_testshttps://github.com/django/django/blob/main/tests/auth_tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#troubleshooting
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#test-suite-hangs-or-shows-failures-on-main-branch
supported Python versionhttps://docs.djangoproject.com/en/dev/faq/install/#faq-python-version-support
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#many-test-failures-with-unicodeencodeerror
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#tests-that-only-fail-in-combination
specifying further test labelshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#runtests-specifying-labels
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#seeing-the-sql-queries-run-during-a-test
SQL logginghttps://docs.djangoproject.com/en/dev/ref/logging/#django-db-logger
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#seeing-the-full-traceback-of-a-test-failure
DJANGO_TEST_PROCESSEShttps://docs.djangoproject.com/en/dev/ref/django-admin/#envvar-DJANGO_TEST_PROCESSES
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#tips-for-writing-tests
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#isolating-model-registration
appshttps://docs.djangoproject.com/en/dev/ref/applications/#django.apps.apps
isolate_apps()https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.utils.isolate_apps
app_labelhttps://docs.djangoproject.com/en/dev/ref/models/options/#django.db.models.Options.app_label
isolate_apps()https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.utils.isolate_apps
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#id4
Submitting contributionshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/
Working with Git and GitHub https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/
Back to Tophttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#top
Agence Debord donated to the Django Software Foundation to support Django development. Donate today! https://www.djangoproject.com/fundraising/
Unit testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
Running the unit testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-unit-tests
Quickstarthttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#quickstart
Running tests using toxhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-tests-using-tox
Testing other Python versions and database backendshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#testing-other-python-versions-and-database-backends
Running the JavaScript testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-javascript-tests
Running tests using django-docker-boxhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-tests-using-django-docker-box
Using another settings modulehttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#using-another-settings-module
Running only some of the testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-only-some-of-the-tests
Running the Selenium testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-selenium-tests
Screenshot testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#screenshot-tests
Running all the testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-all-the-tests
Code coveragehttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage
Code coverage on pull requestshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#code-coverage-on-pull-requests
Contrib appshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#contrib-apps
Troubleshootinghttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#troubleshooting
Test suite hangs or shows failures on main branchhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#test-suite-hangs-or-shows-failures-on-main-branch
Many test failures with UnicodeEncodeErrorhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#many-test-failures-with-unicodeencodeerror
Tests that only fail in combinationhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#tests-that-only-fail-in-combination
Seeing the SQL queries run during a testhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#seeing-the-sql-queries-run-during-a-test
Seeing the full traceback of a test failurehttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#seeing-the-full-traceback-of-a-test-failure
Tips for writing testshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#tips-for-writing-tests
Isolating model registrationhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#isolating-model-registration
Submitting contributionshttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/submitting-patches/
Working with Git and GitHubhttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/working-with-git/
Table of contentshttps://docs.djangoproject.com/en/dev/contents/
General Indexhttps://docs.djangoproject.com/en/dev/genindex/
Python Module Indexhttps://docs.djangoproject.com/en/dev/py-modindex/
Django dev documentationhttps://docs.djangoproject.com/en/dev/
Django internalshttps://docs.djangoproject.com/en/dev/internals/
Contributing to Djangohttps://docs.djangoproject.com/en/dev/internals/contributing/
Contributing codehttps://docs.djangoproject.com/en/dev/internals/contributing/writing-code/
FAQhttps://docs.djangoproject.com/en/dev/faq/
Indexhttps://docs.djangoproject.com/en/stable/genindex/
Module Indexhttps://docs.djangoproject.com/en/stable/py-modindex/
Table of Contentshttps://docs.djangoproject.com/en/stable/contents/
Django Discord Serverhttps://chat.djangoproject.com
Official Django Forumhttps://forum.djangoproject.com/
Ticket trackerhttps://code.djangoproject.com/
HTMLhttps://media.djangoproject.com/docs/django-docs-dev-en.zip
PDFhttps://media.readthedocs.org/pdf/django/latest/django.pdf
ePubhttps://media.readthedocs.org/epub/django/latest/django.epub
Read the Docshttps://readthedocs.org/
https://sentry.io/for/django/
Monitor your Django Code Resolve performance bottlenecks and errors using monitoring, replays, logs and Seer an AI agent for debugging. https://sentry.io/for/django/
https://jb.gg/ybja10
JetBrains delivers intelligent software solutions that make developers more productive by simplifying their challenging tasks, automating the routine, and helping them adopt the best development practices. PyCharm is the Python IDE for Professional Developers by JetBrains providing a complete set of tools for productive Python, Web and scientific development. https://jb.gg/ybja10
https://kraken.tech
Kraken is the most-loved operating system for energy. Powered by our Utility-Grade AI™ and deep industry know-how, we help utilities transform their technology and operations so they can lead the energy transition. Delivering better outcomes from generation through distribution to supply, Kraken powers 70+ million accounts worldwide, and is on a mission to make a big, green dent in the universe. https://kraken.tech
https://posthog.com
PostHog is an all-in-one developer platform for building successful products. We provide product analytics, web analytics, session replay, error tracking, feature flags, experiments, surveys, LLM observability, data warehouse, CDP, workflows, logs, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack. https://posthog.com
About Djangohttps://www.djangoproject.com/start/overview/
Getting Started with Djangohttps://www.djangoproject.com/start/
Team Organizationhttps://www.djangoproject.com/foundation/teams/
Django Software Foundationhttps://www.djangoproject.com/foundation/
Code of Conducthttps://www.djangoproject.com/conduct/
Diversity Statementhttps://www.djangoproject.com/diversity/
Join a Grouphttps://www.djangoproject.com/community/
Contribute to Djangohttps://docs.djangoproject.com/en/dev/internals/contributing/
Submit a Bughttps://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/
Report a Security Issuehttps://docs.djangoproject.com/en/dev/internals/security/#reporting-security-issues
Individual membershiphttps://www.djangoproject.com/foundation/individual-members/
Getting Help FAQhttps://docs.djangoproject.com/en/stable/faq/
Django Discordhttps://chat.djangoproject.com
Official Django Forumhttps://forum.djangoproject.com/
GitHubhttps://github.com/django
Xhttps://x.com/djangoproject
Fediverse (Mastodon)https://fosstodon.org/@django
Blueskyhttps://bsky.app/profile/djangoproject.com
LinkedInhttps://www.linkedin.com/company/django-software-foundation
News RSShttps://www.djangoproject.com/rss/weblog/
Sponsor Djangohttps://www.djangoproject.com/fundraising/
Corporate membershiphttps://www.djangoproject.com/foundation/corporate-members/
Official merchandise storehttps://django.threadless.com/
Benevity Workplace Giving Programhttps://www.djangoproject.com/fundraising/#benevity-giving
Djangohttps://www.djangoproject.com/
In-kind donorshttps://www.djangoproject.com/fundraising/#in-kind-donors
Threespothttps://www.threespot.com
andrevvhttp://andrevv.com/
Django Software Foundationhttps://www.djangoproject.com/foundation/
registered trademarkhttps://www.djangoproject.com/trademarks/

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.