Test-Driven Development in Django
1h 24mIntermediate2019-03-12
Authors

Nick Walter
Mobile and web developer, instructor, and coding enthusiast
Course details
As a high-level Python web framework, Django is very useful for developers to understand. Combining Django with a test-driven development process can lead to higher-quality code and a faster development cycle. In this course, follow along with Nick Walter as he explains test-driven development with Django. Nick explores functional tests and unit tests, discussing the differences. He also covers advanced testing methods, the Django testing framework, hash testing, POST requests, AJAX, and more.
Learning objectives
TDD philosophy
Comparing functional and unit tests
Writing a test in Selenium
Writing a unit test
Testing page data
Hash testing
Writing a test for user input
Testing a POST request
AJAX implementation
TDD vs. testing after
Learning objectives
TDD philosophy
Comparing functional and unit tests
Writing a test in Selenium
Writing a unit test
Testing page data
Hash testing
Writing a test for user input
Testing a POST request
AJAX implementation
TDD vs. testing after
Skills covered
DjangoSoftware TestingBack-End Web DevelopmentDevOps FoundationsFull-Stack Web DevelopmentDevOpsPythonProjectWeb DevelopmentOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Why test-driven development (TDD) is important
- 02 - What you should know
- 03 - TDD philosophy and project overview
1. Functional Tests
- 04 - Functional vs. unit tests
- 05 - Writing a test in Selenium
- 06 - Passing your first test
- 07 - The Django testing framework
- 08 - Expanding your tests
2. Unit Tests
- 09 - Writing a unit test
- 10 - Testing page data
- 11 - Hash testing
- 12 - Writing a test for user input
- 13 - Saving your model
- 14 - Testing a POST request
- 15 - Passing the test
3. Advanced Testing
- 16 - User input with functional tests
- 17 - Waiting
- 18 - AJAX
- 19 - Testing and deployment
- 20 - TDD vs. test after
Conclusion
- 21 - Next steps
Related courses
- Building RESTful Web APIs with Django
- Test-Driven Development in C++
- Test-Driven Development in Spring Boot with JUnit and Mockito
- Test-Driven Development in an AI World
- Spring: Test-Driven Development with JUnit
- Unit Testing and Test Driven Development in Python
- Introduction to Agile Development Practices: Bring Agile to Your Development Pipelines
- Spring Boot: Test-Driven Development
Related learn paths
- Advance Your Skills as a Django Developer
- Python Hands-On Practice
- Elevating C# Skills: Building Robust Applications
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- Master C++
- Learn Vibe Coding: Build Apps with AI-Powered Coding
- Getting Started with Agile Software Development
- Getting Started with Software Testing