def test_get_config(self):
# These are set to False in YAML; defaults must not be used.
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
do_changelog_check = self.repo.get_config_value(
'changelog_check', True)
do_autoclose_pr = self.repo.get_config_value(
'autoclose_stale_pull_request', True)
hit_api_limit = False
if len(w) > 0:
hit_api_limit = True
if hit_api_limit:
pytest.xfail(str(w[-1].message))
else:
assert not (do_changelog_check or do_autoclose_pr)
评论列表
文章目录