Did I find the right examples for you? yes no

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

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
    def populate(self):
        session = DBSession()
        user = User(name=u'guest')
        session.add(user)
        provenpackager = Group(name=u'provenpackager')
        session.add(provenpackager)
        packager = Group(name=u'packager')
        session.add(packager)
            name=u'F17', long_name=u'Fedora 17',
            id_prefix=u'FEDORA', dist_tag=u'f17', version='17')
        session.add(release)
        pkg = Package(name=u'bodhi')
        session.add(pkg)

src/b/o/bodhi-HEAD/bodhi/tests/models/__init__.py   bodhi(Download)
            new_attrs.update(self.do_get_dependencies())
            self.obj = self.klass(**new_attrs)
            DBSession.add(self.obj)
            DBSession.flush()
            return self.obj

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_updates.py   bodhi(Download)
    def test_no_privs(self):
        session = DBSession()
        user = User(name=u'bodhi')
        session.add(user)
        session.flush()
    def test_provenpackager_privs(self):
        "Ensure provenpackagers can push updates for any package"
        session = DBSession()
        user = User(name=u'bodhi')
        session.add(user)

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_users.py   bodhi(Download)
        session = DBSession()
        user = User(name=u'bodhi')
        session.add(user)
        session.flush()
 

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_releases.py   bodhi(Download)
            name=u'F22', long_name=u'Fedora 22',
            id_prefix=u'FEDORA', dist_tag=u'f22', version='22')
        session.add(release)
        session.flush()
 

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_builds.py   bodhi(Download)
        session = DBSession()
        build = Build(nvr=u'bodhi-3.0-1.fc21')
        session.add(build)
        session.flush()