tag: test client

  • Creating the official Django Polls app Part 5

    Creating the official Django Polls app Part 5

    Maria D. Campbell

    In this section, we are introduced to automated testing. We discuss what automated testing is, why it's important to create tests, basic testing strategies, write our first test to identify a bug, fix the bug, create more comprehensive tests for Question.recently_published(), test a view, analyze the tools available to us in testing, are introduced to the Django test client, improve our PollsIndexView, test our new PollsIndexView, test the PollsDetailView, and break down the refactored PollsDetailView (which originally contained a bug which I fixed).

    #fullstack development, #macOS, #fixing bugs, #identifying bugs, #series, #test client, #testing strategies, #tutorial, #unittest