CodeStips

Fixtures

Mocking Functions in Python Tests

Functions & Modules in Python

Learn to use mocking in Python tests to isolate code from external dependencies like APIs or databases, ensuring reliable, controlled testing.

Using pytest-django for Django Projects

Testing & Debugging

Upgrade from Django tests to pytest-django: more powerful, flexible, and enjoyable testing for your Django projects.