Improve test coverage

This commit is contained in:
Vincent Jacques
2012-05-27 08:28:43 +01:00
parent 956279094a
commit 8a1b00adce
25 changed files with 271 additions and 51 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class PaginatedList:
def __fromData( self, headers, data ):
links = self.__parseLinkHeader( headers )
if len( data ) > 0 and "next" in links and self.__pages < 9:
if len( data ) > 0 and "next" in links and self.__pages < 9: ### @todo Why would we want to stop at the 10th page ?
self.__pages += 1
self.__nextUrl = links[ "next" ]
else:
+1 -1
View File
@@ -576,7 +576,7 @@ class Repository( object ):
def get_git_refs( self ):
status, headers, data = self.__requester.request(
"GET",
str( self.url ) + "/git",
str( self.url ) + "/git/refs",
None,
None
)