(self)
| 20 | |
| 21 | class TestInsert(DBTestCase): |
| 22 | def test_insert(self): |
| 23 | self.insert_rows() |
| 24 | |
| 25 | Band.insert(Band(name="Rustaceans", popularity=100)).run_sync() |
| 26 | |
| 27 | response = Band.select(Band.name).run_sync() |
| 28 | names = [i["name"] for i in response] |
| 29 | |
| 30 | self.assertIn("Rustaceans", names) |
| 31 | |
| 32 | def test_add(self): |
| 33 | self.insert_rows() |
nothing calls this directly
no test coverage detected