MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_use_object_set_commit

Method test_use_object_set_commit

test/orm/test_attributes.py:2377–2383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2375 eq_(self._someattr_history(f), ([hi], (), ()))
2376
2377 def test_use_object_set_commit(self):
2378 Foo, Bar = self._two_obj_fixture(uselist=False)
2379 f = Foo()
2380 hi = Bar(name="hi")
2381 f.someattr = hi
2382 self._commit_someattr(f)
2383 eq_(self._someattr_history(f), ((), [hi], ()))
2384
2385 def test_use_object_set_commit_set(self):
2386 Foo, Bar = self._two_obj_fixture(uselist=False)

Callers

nothing calls this directly

Calls 6

_two_obj_fixtureMethod · 0.95
_commit_someattrMethod · 0.95
_someattr_historyMethod · 0.95
eq_Function · 0.90
FooClass · 0.70
BarClass · 0.70

Tested by

no test coverage detected