MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_update_defaults

Method test_update_defaults

test/orm/test_cycles.py:1845–1858  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1843 PostUpdateOnUpdateTest.db_counter = count()
1844
1845 def test_update_defaults(self):
1846 A, B = self.classes("A", "B")
1847
1848 s = fixture_session()
1849 a1 = A()
1850 b1 = B()
1851
1852 a1.bs.append(b1)
1853 a1.favorite_b = b1
1854 s.add(a1)
1855 s.flush()
1856
1857 eq_(a1.updated, 0)
1858 eq_(a1.updated_db, 0)
1859
1860 def test_update_defaults_refresh_flush_event(self):
1861 A, B = self.classes("A", "B")

Callers

nothing calls this directly

Calls 7

fixture_sessionFunction · 0.90
eq_Function · 0.90
AClass · 0.70
BClass · 0.70
appendMethod · 0.45
addMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected