Skip to content

Commit ddbccda

Browse files
committed
fix tests
1 parent 28029bd commit ddbccda

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

tests/common/test_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def test_default_list_option_callback(runner):
5353
GenerateREADME
5454
GenerateUnitTests
5555
PRReview
56-
ResolveIssue"""
56+
ResolveIssue
57+
SonarFix"""
5758
)
5859

5960

@@ -73,6 +74,7 @@ def test_config_list_option_callback(runner, config_dir, patchflow_file):
7374
GenerateUnitTests
7475
PRReview
7576
ResolveIssue
77+
SonarFix
7678
{name_without_ext}"""
7779
)
7880

tests/steps/test_ReadIssues.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,22 @@
99
(
1010
{"github_api_key": "key"},
1111
"patchwork.common.client.scm.GithubClient.find_issue_by_url",
12-
dict(title="", body="github pr body", comments=["nothing", "there"], description="Title:\n\n\nDescription:\ngithub pr body\n"),
12+
dict(
13+
title="",
14+
body="github pr body",
15+
comments=["nothing", "there"],
16+
description="Title:\n\n\nDescription:\ngithub pr body\n",
17+
),
1318
),
1419
(
1520
{"gitlab_api_key": "key"},
1621
"patchwork.common.client.scm.GitlabClient.find_issue_by_url",
17-
dict(title="gitlab pr title", body="", comments=["something", "here"], description="Title:\ngitlab pr title\n\nDescription:\n\n"),
22+
dict(
23+
title="gitlab pr title",
24+
body="",
25+
comments=["something", "here"],
26+
description="Title:\ngitlab pr title\n\nDescription:\n\n",
27+
),
1828
),
1929
],
2030
)

tests/steps/test_ScanSonar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_scan_sonar():
4040
def test_scan_sonar_error():
4141
inputs = {
4242
"sonarqube_project_key": "test-project",
43-
"sonarqube_access_token": "test-token",
43+
"sonarqube_api_key": "test-token",
4444
"sonarqube_base_url": "https://sonarcloud.io"
4545
}
4646

0 commit comments

Comments
 (0)