14. Testing


This chapter introduces you to the concept of testing Django web applications. You will learn about the importance of testing in software development and, more importantly, in building web applications. You will write unit tests for your Django application's components, such as views, models, and endpoints. Completing this chapter will equip you with the skills to write test cases for Django web applications. That way, you can ensure that your application code works the way you expect.


In the preceding chapters, we have focused upon building our web application in Django by writing different components such as database models, views, and templates. We did all that to provide our users with an interactive ...

Get Web Development with Django now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.