MCPcopy Index your code
hub / github.com/piccolo-orm/piccolo / test_remove_sqlite

Method test_remove_sqlite

tests/columns/test_array.py:299–309  ·  view source on GitHub ↗

If using SQLite then an exception should be raised currently.

(self)

Source from the content-addressed store, hash-verified

297
298 @sqlite_only
299 def test_remove_sqlite(self):
300 """
301 If using SQLite then an exception should be raised currently.
302 """
303 with self.assertRaises(ValueError) as manager:
304 MyTable.value.remove(2)
305
306 self.assertEqual(
307 str(manager.exception),
308 "Only Postgres and Cockroach support array removing.",
309 )
310
311
312###############################################################################

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected