Writing the Code for the Models

Writing the code for the model and rerun the test.

In this lesson, we write the simplest code that will make the test run successfully and also discuss refactoring. This means we combine the remaining three steps involved in TDD in this lesson.

The Catalogue model

Here’s the complete model showing the continuation of the project for this course:

Get hands-on with 1400+ tech skills courses.