Did I find the right examples for you? yes no

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

src/b/o/bodhi-HEAD/bodhi/models/models.py   bodhi(Download)
    def mandatory_days_in_testing(self):
        name = self.name.lower().replace('-', '')
        status = config.get('%s.status' % name, None)
        if status:
            days = int(config.get(
                '%s.%s.mandatory_days_in_testing' % (name, status)))
            if days:
                return days
        days = int(config.get('%s.mandatory_days_in_testing' %
    def fetch_test_cases(self, db):
        """ Get a list of test cases from the wiki """
        if not asbool(config.get('query_wiki_test_cases')):
            return
 
        from simplemediawiki import MediaWiki
        wiki = MediaWiki(config.get('wiki_url', 'https://fedoraproject.org/w/api.php'))

src/b/o/bodhi-HEAD/bodhi/bugs.py   bodhi(Download)
    def __init__(self):
        user = config.get('bodhi_email')
        password = config.get('bodhi_password', None)
        if user and password:
            self.bz = bugzilla.Bugzilla(url=config.get("bz_server"),
                                        user=user, password=password)
        else:
            self.bz = bugzilla.Bugzilla(url=config.get("bz_server"))
 
 
if config.get('bugtracker') == 'bugzilla':
    import bugzilla
    log.debug('Using python-bugzilla')

src/b/o/bodhi-HEAD/bodhi/tests/test_utils.py   bodhi(Download)
    def test_config(self):
        assert config.get('sqlalchemy.url'), config
        assert config['sqlalchemy.url'], config
 
    def test_get_db_from_config(self):

src/b/o/bodhi-HEAD/bodhi/tests/models/test_models.py   bodhi(Download)
        eq_(self.obj.request, UpdateRequest.testing)
        eq_(self.obj.status, UpdateStatus.pending)
        eq_(req.errors[0]['description'], config.get('not_yet_tested_msg'))
 
    def test_set_request_stable_after_week_in_testing(self):

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_updates.py   bodhi(Download)
        eq_(resp.json['status'], 'error')
        eq_(resp.json['errors'][0]['description'],
            config.get('not_yet_tested_msg'))
 
    def test_stable_request_after_testing(self):