...

/

Write and Run the Tests for the Templates

Write and Run the Tests for the Templates

Learn to write tests for templates in Django.

We'll cover the following...

As we know, Django follows the Model-View-Template model. For our models, we’ve written both the test and the code. We discussed the view and also the template. However, we haven’t yet created a complete test suite for the template. This is what this particular lesson will focus on.

Note: It’s an iterative process to program an application. We go to the next piece of functionality as one is programmed out.

This project’s template is only a single file called index.html that ...