

def _fixture(self):
    User = self.classes.User
    s = Session()
    (u1, u2, u3, u4) = (User(id=1, name='u1'), User(id=2, name='u2'), User(id=7, name='u3'), User(id=8, name='u4'))
    s.query(User).filter(User.id.in_([7, 8])).all()
    s.close()
    return (s, [u1, u2, u3, u4])

dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_loading.py MergeResultTest._fixture/original