MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_set_commit

Method test_scalar_set_commit

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

Source from the content-addressed store, hash-verified

1989 eq_(self._someattr_history(f), ([None], (), ()))
1990
1991 def test_scalar_set_commit(self):
1992 Foo = self._fixture(
1993 uselist=False, useobject=False, active_history=False
1994 )
1995 f = Foo()
1996 f.someattr = "hi"
1997 self._commit_someattr(f)
1998 eq_(self._someattr_history(f), ((), ["hi"], ()))
1999
2000 def test_scalar_set_commit_reset(self):
2001 Foo = self._fixture(

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
_commit_someattrMethod · 0.95
_someattr_historyMethod · 0.95
eq_Function · 0.90
FooClass · 0.70

Tested by

no test coverage detected