feature: improve tests
This commit is contained in:
parent
25d6587ebe
commit
1f6f5b9cc4
1 changed files with 8 additions and 7 deletions
|
|
@ -37,14 +37,15 @@ class TestAiCodeReview:
|
|||
|
||||
repo_name = pull_request.target_repo.repo_name
|
||||
pull_request_id = pull_request.pull_request_id
|
||||
response = self.app.post(
|
||||
route_path(
|
||||
"pullrequest_start_ai_code_review",
|
||||
repo_name=repo_name,
|
||||
pull_request_id=pull_request_id
|
||||
)
|
||||
)
|
||||
|
||||
with patch("rhodecode.apps.repository.views.repo_pull_requests.run_task") as run_task_mock:
|
||||
response = self.app.post(
|
||||
route_path(
|
||||
"pullrequest_start_ai_code_review",
|
||||
repo_name=repo_name,
|
||||
pull_request_id=pull_request_id
|
||||
)
|
||||
)
|
||||
redirect_url = route_path(
|
||||
"pullrequest_show",
|
||||
repo_name=repo_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue