def gh(): token = gh2md.get_environment_token() gh = gh2md.github_login(token=token) return gh
def test_get_repo_returns_pygithub_repo(): repo_name = "mattduck/dotfiles" token = gh2md.get_environment_token() repo, gh = gh2md.get_github_repo(repo_name, token=token) assert repo.html_url == "https://github.com/mattduck/dotfiles"
def gh(): return gh2md.GithubAPI(gh2md.get_environment_token())