Notes to Test driven development with Django using pycharm (chp 5 database!)
0 Checkpoints ORM model in Django 1 The first unit test First, let’s write the unit test for database. What are we going to test then? Well, as we discussed in the last section, the unit test is about testing the logic, flow control. So what we are going to do here is to test:
We input a value as the first row in the webpage. Does the database receives the same value as the input?