Data, Technology & EngineeringEntertainment, Media & ArtsExplore OptionsFocus & PrepareHealthcare & Biomedical SciencesTake Action

Unit Testing in Django

Instructor: Leticia Portella

Tests are at the heart of modern software development, and testing is a skill that should be as basic as building the applications. In this course, Leticia Portella uses an untested Django application to teach you about the tools and good practices of writing tests. Learn about Pytest, one of the most known and complete testing frameworks in Python. Explore how you can use Pytest to test a Django application, from building your first unit tests to learning how to think about what makes a good test. Review several tests you can run with Pytest and Django, including testing a GET endpoint and testing behavior when a user is authenticated. Walk through the layers of security that Pytest adds to protect you from accidents. Find out how being lazy while writing tests can be leveraged to write better tests faster. Finally, discover how to quickly create instances and use tools to avoid rewriting code. This is the ideal course to follow Leticia’s first course, Django Essential Training.

Learn More