File tree Expand file tree Collapse file tree
tests/integrations/github/cicd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ dev = [
7676 " psycopg2-binary" ,
7777 " pydantic" ,
7878 " PyAthena[Pandas]" ,
79- " PyGithub~=2.5.0 " ,
79+ " PyGithub" ,
8080 " pyperf" ,
8181 " pyspark~=3.5.0" ,
8282 " pytest" ,
Original file line number Diff line number Diff line change @@ -41,20 +41,19 @@ def github_client(mocker: MockerFixture):
4141
4242
4343@pytest .fixture
44- def make_pull_request_review () -> t .Callable :
44+ def make_pull_request_review (github_client ) -> t .Callable :
4545 from github .PullRequestReview import PullRequestReview
4646
4747 def _make_function (username : str , state : str , ** kwargs ) -> PullRequestReview :
4848 return PullRequestReview (
49- "test" , # type: ignore
49+ github_client . requester ,
5050 {},
5151 {
5252 # Name is whatever they provide in their GitHub profile or login as fallback. Always use login.
5353 "user" : AttributeDict (name = "Unrelated" , login = username ),
5454 "state" : state ,
5555 ** kwargs ,
5656 },
57- completed = False ,
5857 )
5958
6059 return _make_function
You can’t perform that action at this time.
0 commit comments