Apply advanced testing for your Django web application

提供方
Coursera Project Network
在此指导项目中,您将:

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
Advanced高级设置
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

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.

您要培养的技能

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

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  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

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心