MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_set_commit_reset

Method test_scalar_set_commit_reset

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

Source from the content-addressed store, hash-verified

1998 eq_(self._someattr_history(f), ((), ["hi"], ()))
1999
2000 def test_scalar_set_commit_reset(self):
2001 Foo = self._fixture(
2002 uselist=False, useobject=False, active_history=False
2003 )
2004 f = Foo()
2005 f.someattr = "hi"
2006 self._commit_someattr(f)
2007 f.someattr = "there"
2008 eq_(self._someattr_history(f), (["there"], (), ["hi"]))
2009
2010 def test_scalar_set_commit_reset_commit(self):
2011 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