test_github_issues_service.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:flash_services 作者: textbook 项目源码 文件源码
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}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号