File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ def name(
17
17
18
18
19
19
@app .command (
20
- name = "sonarqube-config " ,
20
+ name = "sonarqube" ,
21
21
help = "Show the sonar-projects.properties file for SonarQube." ,
22
22
)
23
- def sonarqube_config (
23
+ def sonarqube (
24
24
offline : bool = offline_opt ,
25
25
quiet : bool = quiet_opt ,
26
26
) -> None :
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def test_output(self, tmp_path: Path):
22
22
assert result .output == """fun\n """
23
23
24
24
25
- class TestSonarqubeConfig :
25
+ class TestSonarqube :
26
26
def test_runs (self , tmp_path : Path ):
27
27
# Arrange
28
28
(tmp_path / "pyproject.toml" ).write_text (
@@ -37,7 +37,7 @@ def test_runs(self, tmp_path: Path):
37
37
# Act
38
38
runner = CliRunner ()
39
39
with change_cwd (tmp_path ):
40
- result = runner .invoke (app , ["sonarqube-config " ])
40
+ result = runner .invoke (app , ["sonarqube" ])
41
41
42
42
# Assert
43
43
assert result .exit_code == 0 , result .output
@@ -49,7 +49,7 @@ def test_missing_key(self, tmp_path: Path):
49
49
# Act
50
50
runner = CliRunner ()
51
51
with change_cwd (tmp_path ):
52
- result = runner .invoke (app , ["sonarqube-config " ])
52
+ result = runner .invoke (app , ["sonarqube" ])
53
53
54
54
# Assert
55
55
assert result .exit_code == 1 , result .output
You can’t perform that action at this time.
0 commit comments