MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_get_fully_null_pk

Method test_get_fully_null_pk

test/orm/test_query.py:1242–1253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1240 eq_(u10, UserThing(id=10))
1241
1242 def test_get_fully_null_pk(self):
1243 User = self.classes.User
1244
1245 s = fixture_session()
1246 assert_warns_message(
1247 sa_exc.SAWarning,
1248 r"fully NULL primary key identity cannot load any object. "
1249 "This condition may raise an error in a future release.",
1250 s.get,
1251 User,
1252 None,
1253 )
1254
1255 def test_get_fully_null_composite_pk(self, outerjoin_mapping):
1256 UserThing = outerjoin_mapping

Callers

nothing calls this directly

Calls 2

fixture_sessionFunction · 0.90
assert_warns_messageFunction · 0.90

Tested by

no test coverage detected