Did I find the right examples for you? yes no

All Samples(11)  |  Call(5)  |  Derive(0)  |  Import(6)

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_updates.py   bodhi(Download)
import bodhi.tests.functional.base
 
from bodhi import main
from bodhi.config import config
from bodhi.models import (
        session.add(user)
        session.flush()
        app = TestApp(main({}, testing=u'bodhi', **self.app_settings))
        res = app.post_json('/updates/', self.get_update(u'bodhi-2.1-1.fc17'),
                            status=400)
        user.groups.append(group)
 
        app = TestApp(main({}, testing=u'bodhi', **self.app_settings))
        res = app.post_json('/updates/', self.get_update(u'bodhi-2.1-1.fc17'))
        assert 'bodhi does not have commit access to bodhi' not in res, res
        settings['acl_system'] = 'pkgdb'
        settings['pkgdb_url'] = 'invalidurl'
        app = TestApp(main({}, testing=u'guest', **settings))
        res = app.post_json('/updates/', self.get_update(u'bodhi-2.0-2.fc17'),
                            status=400)
    def test_invalid_acl_system(self):
        settings = self.app_settings.copy()
        settings['acl_system'] = 'null'
        app = TestApp(main({}, testing=u'guest', **settings))
        res = app.post_json('/updates/', self.get_update(u'bodhi-2.0-2.fc17'),

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
from sqlalchemy import create_engine
 
from bodhi import main
from bodhi.models import (
    Base,
        Base.metadata.create_all(engine)
        self.populate()
        self.app = TestApp(main({}, testing=u'guest', **self.app_settings))
 
    def tearDown(self):

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_users.py   bodhi(Download)
import bodhi.tests.functional.base
 
from bodhi import main
from bodhi.models import (
    Base,

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_releases.py   bodhi(Download)
import bodhi.tests.functional.base
 
from bodhi import main
from bodhi.models import (
    Base,

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_comments.py   bodhi(Download)
import bodhi.tests.functional.base
 
from bodhi import main
from bodhi.config import config
from bodhi.models import (

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_builds.py   bodhi(Download)
import bodhi.tests.functional.base
 
from bodhi import main
from bodhi.models import (
    Base,