mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Improve test coverage
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user