MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_set

Method test_scalar_set

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

Source from the content-addressed store, hash-verified

1918 assert "someattr" not in attributes.instance_state(f).committed_state
1919
1920 def test_scalar_set(self):
1921 Foo = self._fixture(
1922 uselist=False, useobject=False, active_history=False
1923 )
1924 f = Foo()
1925 f.someattr = "hi"
1926 eq_(self._someattr_history(f), (["hi"], (), ()))
1927
1928 def test_scalar_set_None(self):
1929 # note - compare:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected