Fix testGists

This commit is contained in:
Vincent Jacques
2012-05-08 08:36:50 +01:00
parent c01d36a64e
commit 07e994823e
7 changed files with 239 additions and 100 deletions
+5 -1
View File
@@ -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 )