mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
get repos missing params for authenticated users (#915)
first commit to fix issue #435
This commit is contained in:
committed by
Wan Liuyang
parent
e18b107883
commit
c411196f24
@@ -218,7 +218,7 @@ class AuthenticatedUser(Framework.TestCase):
|
||||
self.assertListKeyEqual(self.user.get_repos(), lambda r: r.name, ["TestPyGithub", "django", "PyGithub", "developer.github.com", "acme-public-website", "C4Planner", "Hacking", "vincent-jacques.net", "Contests", "Candidates", "Tests", "DrawTurksHead", "DrawSyntax", "QuadProgMm", "Boost.HierarchicalEnum", "ViDE"])
|
||||
|
||||
def testGetReposWithArguments(self):
|
||||
self.assertListKeyEqual(self.user.get_repos("public", "full_name", "desc"), lambda r: r.name, ["ViDE", "QuadProgMm", "PyGithub", "DrawTurksHead", "DrawSyntax", "django", "developer.github.com", "C4Planner", "Boost.HierarchicalEnum", "acme-public-website"])
|
||||
self.assertListKeyEqual(self.user.get_repos("all", "owner", "public", "full_name", "desc"), lambda r: r.name, ["ViDE", "QuadProgMm", "PyGithub", "DrawTurksHead", "DrawSyntax", "django", "developer.github.com", "C4Planner", "Boost.HierarchicalEnum", "acme-public-website"])
|
||||
|
||||
def testCreateFork(self):
|
||||
repo = self.user.create_fork(self.g.get_user("nvie").get_repo("gitflow"))
|
||||
|
||||
@@ -2,7 +2,7 @@ https
|
||||
GET
|
||||
api.github.com
|
||||
None
|
||||
/user/repos?sort=full_name&direction=desc&type=public
|
||||
/user/repos?affiliation=owner&visibility=all&sort=full_name&direction=desc&type=public
|
||||
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
||||
None
|
||||
200
|
||||
|
||||
Reference in New Issue
Block a user