Apply basic testing for your Django web application

Offered By
Coursera Project Network
In this Guided Project, you will:

Learn how to test the various components of a Django app

Learn how to synchronize development and testing

Practice improving your code based on the results of the tests

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this 2-hour long project-based course, you will learn how Django's rich testing framework work, and how to use it to test your web apps. You will create a simple Django project with two apps, and you will create test methods to cover model and view methods. Using the Client object, you will write code that virtually interact with your form. You will run the tests and improve your code based on the results of the tests. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Unit TestingDjango (Web Framework)Python ProgrammingObject-Oriented Programming (OOP)

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Create the POS Django project and its apps, and set it up for testing

  2. Test the model methods

  3. Test the transaction app view

  4. Test the report app view

  5. Test the form

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.