MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_first_no_result

Method test_first_no_result

test/ext/test_baked.py:135–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 cls.mapper_registry.map_imperatively(User, cls.tables.users)
134
135 def test_first_no_result(self):
136 User = self.classes.User
137
138 bq = self.bakery(lambda s: s.query(User))
139 bq += lambda q: q.filter(User.name == "asdf")
140
141 eq_(bq(fixture_session()).first(), None)
142
143 def test_first_multiple_result(self):
144 User = self.classes.User

Callers

nothing calls this directly

Calls 6

eq_Function · 0.90
fixture_sessionFunction · 0.90
bakeryMethod · 0.80
queryMethod · 0.45
filterMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected