MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_scalar_set_None

Method test_scalar_set_None

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

Source from the content-addressed store, hash-verified

1926 eq_(self._someattr_history(f), (["hi"], (), ()))
1927
1928 def test_scalar_set_None(self):
1929 # note - compare:
1930 # test_scalar_set_None,
1931 # test_scalar_get_first_set_None,
1932 # test_use_object_set_None,
1933 # test_use_object_get_first_set_None
1934 Foo = self._fixture(
1935 uselist=False, useobject=False, active_history=False
1936 )
1937 f = Foo()
1938 f.someattr = None
1939 eq_(self._someattr_history(f), ([None], (), ()))
1940
1941 def test_scalar_del(self):
1942 # 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