MCPcopy
hub / github.com/piccolo-orm/piccolo / test_add

Method test_add

tests/table/test_insert.py:32–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 self.assertIn("Rustaceans", names)
31
32 def test_add(self):
33 self.insert_rows()
34
35 Band.insert().add(Band(name="Rustaceans", popularity=100)).run_sync()
36
37 response = Band.select(Band.name).run_sync()
38 names = [i["name"] for i in response]
39
40 self.assertIn("Rustaceans", names)
41
42 def test_incompatible_type(self):
43 """

Callers

nothing calls this directly

Calls 6

BandClass · 0.90
insertMethod · 0.80
selectMethod · 0.80
insert_rowsMethod · 0.45
run_syncMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected