mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Fix testGists
This commit is contained in:
+5
-1
@@ -31,7 +31,11 @@ class Github:
|
||||
return GithubObjects.Organization.Organization( self.__requester, attributes, lazy = False )
|
||||
|
||||
def get_gist( self, id ):
|
||||
return GithubObjects.Gist.Gist( self.__requester, { "id": id }, lazy = False )
|
||||
attributes = {
|
||||
"url": "https://api.github.com/gists/" + str( id ),
|
||||
"id": id,
|
||||
}
|
||||
return GithubObjects.Gist.Gist( self.__requester, attributes, lazy = False )
|
||||
|
||||
def get_gists( self ):
|
||||
status, headers, data = self.__requester.request( "GET", "https://api.github.com/gists/public", None, None )
|
||||
|
||||
Reference in New Issue
Block a user