From edad378e7ba5cae3b41406f6738255cff2f484c1 Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Thu, 3 May 2012 22:40:28 +0100 Subject: [PATCH] Fix github.get_organization => fix testOrganizationDetails! --- github/Github.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/github/Github.py b/github/Github.py index 6587fa2b..ad82afd9 100644 --- a/github/Github.py +++ b/github/Github.py @@ -30,7 +30,11 @@ class Github: return GithubObjects.NamedUser.NamedUser( self, attributes, lazy = False ) def get_organization( self, login ): - return GithubObjects.Organization.Organization( self, { "login": login }, lazy = False ) + attributes = { + "url": "https://api.github.com/orgs/" + login, + "login": login, + } + return GithubObjects.Organization.Organization( self, attributes, lazy = False ) def get_gist( self, id ): return GithubObjects.Gist.Gist( self, { "id": id }, lazy = False )