MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_modified

Method test_modified

test/ext/test_indexable.py:325–340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

323 eq_(j.other, 42)
324
325 def test_modified(self):
326 Json = self.classes.Json
327 s = Session(testing.db)
328
329 j = Json(json={})
330 s.add(j)
331 s.commit()
332
333 i = inspect(j)
334 is_(i.modified, False)
335 in_("json", i.unmodified)
336
337 j.other = 42
338
339 is_(i.modified, True)
340 not_in("json", i.unmodified)
341
342 def test_cast_type(self):
343 Json = self.classes.Json

Callers

nothing calls this directly

Calls 8

addMethod · 0.95
commitMethod · 0.95
SessionClass · 0.90
inspectFunction · 0.90
is_Function · 0.90
in_Function · 0.90
not_inFunction · 0.90
JsonClass · 0.85

Tested by

no test coverage detected