MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_update_broken_custom_key_thing

Method test_update_broken_custom_key_thing

test/sql/test_update.py:231–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

229 )
230
231 def test_update_broken_custom_key_thing(self):
232 table1 = self.tables.mytable
233
234 class Thing:
235 def __clause_element__(self):
236 return 5
237
238 assert_raises_message(
239 exc.ArgumentError,
240 "SET/VALUES column expression or string key expected, got .*Thing",
241 table1.update().values,
242 {Thing(): "jack"},
243 )
244
245 def test_update_ordered_broken_custom_key_thing(self):
246 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 3

assert_raises_messageFunction · 0.90
ThingClass · 0.70
updateMethod · 0.45

Tested by

no test coverage detected