Apply advanced testing for your Django web application

oferecido por
Coursera Project Network
Neste projeto guiado, você irá:

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
AdvancedAvançado
CloudSem necessidade de download
VideoVídeo em tela dividida
Comment DotsInglês
LaptopApenas em desktop

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.

Habilidades que você desenvolverá

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

Aprender passo a passo

Em um vídeo reproduzido em uma tela dividida com a área de trabalho, seu instrutor o orientará sobre esses passos:

  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

Como funcionam os projetos guiados

Sua área de trabalho é um espaço em nuvem, acessado diretamente do navegador, sem necessidade de nenhum download

Em um vídeo de tela dividida, seu instrutor te orientará passo a passo

Perguntas Frequentes – FAQ

Perguntas Frequentes – FAQ

Mais dúvidas? Visite o Central de Ajuda ao estudante.