Fix integration tests after rebase

This commit is contained in:
Vincent Jacques
2012-02-23 19:48:08 +00:00
parent 2a5b743c2e
commit 04a2565d75
2 changed files with 8 additions and 5 deletions
+7 -5
View File
@@ -120,7 +120,8 @@ class IntegrationTest:
self.dumpUser( self.g.get_user() )
jacquev6 = self.g.get_user( "jacquev6" )
self.dumpUser( jacquev6 )
self.dumpOrganization( self.g.get_organization( "github" ) )
self.dumpOrganization( self.g.get_organization( "github" ), doTeams = False )
self.dumpOrganization( self.g.get_organization( "BeaverSoftware" ), doTeams = True )
self.dumpRepository( jacquev6.get_repo( "PyGithub" ) )
def doSomeWrites( self ):
@@ -170,13 +171,14 @@ class IntegrationTest:
print
sys.stdout.flush()
def dumpOrganization( self, o ):
def dumpOrganization( self, o, doTeams ):
print o.login, "(", o.name, ")"
print " Members:", ", ".join( u.login for u in o.get_members() )
print " Repos:", ", ".join( r.name for r in o.get_repos() )
print " Teams:"
for team in o.get_teams():
print " ", team.name, "(" + team.permission + "):", ", ".join( u.login for u in team.get_members() ), "->", ", ".join( r.name for r in team.get_repos() )
if doTeams:
print " Teams:"
for team in o.get_teams():
print " ", team.name, "(" + team.permission + "):", ", ".join( u.login for u in team.get_members() ), "->", ", ".join( r.name for r in team.get_repos() )
print
sys.stdout.flush()
+1
View File
@@ -28,6 +28,7 @@ class Requester:
def __statusCheckedRequest( self, verb, url, parameters, input ):
status, headers, output = self.__rawRequest( verb, url, parameters, input )
if status < 200 or status >= 300:
### @todo Be specific (403 is not the same thing as 404!)
raise UnknownGithubObject()
return headers, output