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

Method test_offset_with_unsafe_value

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

Source from the content-addressed store, hash-verified

243 assert len(db.select("person").list()) == 1
244
245 def test_offset_with_unsafe_value(self):
246 db = self.db
247 db.insert("person", False, name="Foo")
248 assert len(db.select("person").list()) == 1
249
250 try:
251 db.select("person", offset="1; DELETE FROM person;")
252 except db.db_module.Error:
253 # It is alright if the db engine rejects this query
254 pass
255
256 assert len(db.select("person").list()) == 1
257
258 def test_insert_returning(self):
259 db = self.db

Callers

nothing calls this directly

Calls 3

insertMethod · 0.80
listMethod · 0.80
selectMethod · 0.80

Tested by

no test coverage detected