...

/

Write and Run the Tests for the Models

Write and Run the Tests for the Models

Write the tests and initially run them to see them fail.

One of the greatest benefits of developing an application using the TDD approach is that it forces us to think and have a general sense of what we’re building. Here are the main features we aim to develop for the e-library application:

  • We’ll only have a single page that showcases all the books in the catalog. We’ll also have a form that enables users to add books to the database.
  • The fields for the Catalogue model will include the following:
    • title, which is string.
    • ISBN, which is a string.
    • author, which is a string.
    • price, which is a decimal.
    • availability, which
...