Overview of Django Automated Testing Framework
Explore the fundamentals of Django's automated testing framework including SimpleTestCase and TestCase differences, setup and teardown methods, and key assertions used in test-driven development to build reliable database-driven web apps.
We'll cover the following...
We'll cover the following...
Django is a full-fledged web framework written in Python. It comes with an automated testing framework used to write unit tests. This automated testing framework is an extension of the Python unit testing framework.
Here’s a brief overview of the Django automated testing framework.
SimpleTestCase vs. TestCase
We have two classes that inherit from the django.test base class. These are the SimpleTestCase and the TestCase.
The SimpleTestCase class is derived from the TestCase class and writes tests that don’t involve ...