Unit Testing in Django
Offered By: LinkedIn Learning
Course Description
Overview
Explore some of the tools you can use to test your Django application and some good practices for creating tests using Pytest.
Syllabus
Introduction
- Unit test with Django
- Why tests matter
- What is pytest?
- Setting up pytest on Django
- Building your first unit test
- Getting familiar with pytest output
- Where should tests live?
- Testing a GET endpoint
- How to test the behavior when a user is authenticated
- A bit more on the beauty of pytest
- Being mindful of your test suite
- Testing the list endpoint
- Have you tested enough?
- Being lazy: pytest fixtures
- One step beyond the laziness
- Lazy notes make your tests even smarter
- Testing the Create endpoint
- Test is culture
- Learn more
Taught by
Leticia Portella
Related Courses
Ruby on Rails: An IntroductionJohns Hopkins University via Coursera Internet of Things Capstone: Build a Mobile Surveillance System
University of California, San Diego via Coursera Engineering Maintainable Android Apps
Vanderbilt University via Coursera Orientação a Objetos com Java
Instituto Tecnológico de Aeronáutica via Coursera TDD – Desenvolvimento de Software Guiado por Testes
Instituto Tecnológico de Aeronáutica via Coursera