Apply advanced testing for your Django web application

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

efficiently preload data for testing in Django using fixutres

customize project settings during a test

examine the HTTPResponse object using assert methods and the Beautiful Soup library

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

In this 1-hour long project-based course, you will learn some of the advanced features of Django testing framework. For a given sample Django project, you will learn how to feed the testing database with data using fixtures. You will use different methods to customize the project-wide settings during a test. You will learn how to test form submission, and understand how to test the response object for strings. In particular, you will use the Beautiful Soup python library to test the response object for the presence of HTML tags. Finally, you will learn how to instruct Django to skip 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

  • Web Testing
  • Django development
  • Beautiful Soup
  • Python Programming
  • Django Testing

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. Understand the sample project and install Beautiful Soup

  2. Navigate the sample project and setup the test data using fixtures

  3. Override your Django project settings during the test

  4. Test form submission

  5. Test the HTTPResponse object for containing strings

  6. Perform tests on HTML strings using Beautiful Soup

  7. Instruct Django to skip tests

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.