mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Add 4 (failing) tests for legacy search API (issue #49)
Naïve implementation done in this commit will not work: - pagination is managed another way - users, repositories and issues do not have the standard format
This commit is contained in:
+14
-1
@@ -1003,7 +1003,20 @@ class Repository( GithubObject.GithubObject ):
|
||||
)
|
||||
|
||||
def search_issues( self, state, keyword ):
|
||||
pass
|
||||
assert state in [ "open", "closed" ], state
|
||||
assert isinstance( keyword, ( str, unicode ) ), keyword
|
||||
headers, data = self._requester.requestAndCheck(
|
||||
"GET",
|
||||
"https://api.github.com/legacy/issues/search/" + self.owner.login + "/" + self.name + "/" + state + "/" + keyword,
|
||||
None,
|
||||
None
|
||||
)
|
||||
return PaginatedList.PaginatedList(
|
||||
Issue.Issue,
|
||||
self._requester,
|
||||
headers,
|
||||
data[ "issues" ]
|
||||
)
|
||||
|
||||
@property
|
||||
def _identity( self ):
|
||||
|
||||
Reference in New Issue
Block a user