Improve coverage, fix bugs

This commit is contained in:
Vincent Jacques
2012-02-18 18:22:05 +01:00
parent cbbe08a59e
commit 6f73ad23c4
4 changed files with 97 additions and 12 deletions
+1 -1
View File
@@ -99,5 +99,5 @@ def __createForkForUser( user, repo ):
AuthenticatedUser._addAttributePolicy( MethodFromCallable( "create_fork", __createForkForUser ) )
def __createForkForOrg( org, repo ):
assert isinstance( repo, Repository )
return Repository( org._github, org._github._dataRequest( "POST", repo._baseUrl + "/forks", { "org=": org.login }, None ), lazy = True )
return Repository( org._github, org._github._dataRequest( "POST", repo._baseUrl + "/forks", { "org": org.login }, None ), lazy = True )
Organization._addAttributePolicy( MethodFromCallable( "create_fork", __createForkForOrg ) )