MCPcopy Index your code
hub / github.com/webpy/webpy / test_where

Method test_where

tests/test_db.py:208–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 self.db.insert("person")
207
208 def test_where(self):
209 self.db.insert("person", False, name="Foo")
210 d = self.db.where("person", name="Foo").list()
211 assert len(d) == 1
212 d = self.db.where("person").list()
213 assert len(d) == 1
214
215
216@requires_module("psycopg2")

Callers

nothing calls this directly

Calls 3

insertMethod · 0.80
listMethod · 0.80
whereMethod · 0.80

Tested by

no test coverage detected