def test_update_enterprise_success(debug):
responses.add(
responses.GET,
'http://dummy.url/repos/foo/bar/issues?state=all&access_token=foobar',
headers={'User-Agent': 'bar'},
json=[],
)
service = GitHubEnterpriseIssues(
api_token='foobar',
account='foo',
repo='bar',
root='http://dummy.url',
)
result = service.update()
debug.assert_called_once_with('fetching GitHub issue data')
assert result == {'issues': {}, 'name': 'foo/bar', 'health': 'neutral', 'halflife': None}
test_github_issues_service.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录