Did I find the right examples for you? yes no

All Samples(34)  |  Call(34)  |  Derive(0)  |  Import(0)

src/d/p/dpxdt-HEAD/dependencies/WTForms/tests/ext_sqlalchemy.py   dpxdt(Download)
    def _fill(self, sess):
        for i, n in [(1, 'apple'),(2, 'banana')]:
            s = self.Test(id=i, name=n)
            p = self.PKTest(foobar='hello%s' % (i, ), baz=n)
            sess.add(s)

src/l/u/LuoYunCloud-HEAD/lyweb/lib/WTForms-1.0.4/tests/ext_sqlalchemy.py   LuoYunCloud(Download)
    def _fill(self, sess):
        for i, n in [(1, 'apple'),(2, 'banana')]:
            s = self.Test(id=i, name=n)
            p = self.PKTest(foobar='hello%s' % (i, ), baz=n)
            sess.add(s)

src/w/t/WTForms-1.0.5/tests/ext_sqlalchemy.py   WTForms(Download)
    def _fill(self, sess):
        for i, n in [(1, 'apple'),(2, 'banana')]:
            s = self.Test(id=i, name=n)
            p = self.PKTest(foobar='hello%s' % (i, ), baz=n)
            sess.add(s)

src/w/t/wtforms-HEAD/tests/ext_sqlalchemy.py   wtforms(Download)
    def _fill(self, sess):
        for i, n in [(1, 'apple'), (2, 'banana')]:
            s = self.Test(id=i, name=n)
            p = self.PKTest(foobar='hello%s' % (i, ), baz=n)
            sess.add(s)

src/h/a/hashbounty-HEAD/lib/wtforms/tests/ext_sqlalchemy.py   hashbounty(Download)
    def _fill(self, sess):
        for i, n in [(1, 'apple'),(2, 'banana')]:
            s = self.Test(id=i, name=n)
            p = self.PKTest(foobar='hello%s' % (i, ), baz=n)
            sess.add(s)

src/a/m/amalgam-0.4.3/tests/base_test.py   amalgam(Download)
    def test_insert(self):
        t = self.Test(name=u'test')
        t.save()
        self.db.session.commit()
 
    def test_fk(self):
        t = self.Test(name=u'test')
        a = self.Another(title=u'quest', test=t)
        t.save()
        a.save()
    def test_default_ordering(self):
        t1 = self.Test(name=u'zxclater')
        t1.save()
        self.db.session.commit()
 
        t2 = self.Test(name=u'asdearlier')