Skip to content

Commit f5fdab9

Browse files
Rename to usethis show sonarqube (#441)
* Rename to `usethis show sonarqube` * Fix typo
1 parent 647bc1a commit f5fdab9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/usethis/_interface/show.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ def name(
1717

1818

1919
@app.command(
20-
name="sonarqube-config",
20+
name="sonarqube",
2121
help="Show the sonar-projects.properties file for SonarQube.",
2222
)
23-
def sonarqube_config(
23+
def sonarqube(
2424
offline: bool = offline_opt,
2525
quiet: bool = quiet_opt,
2626
) -> None:

tests/usethis/_interface/test_show.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_output(self, tmp_path: Path):
2222
assert result.output == """fun\n"""
2323

2424

25-
class TestSonarqubeConfig:
25+
class TestSonarqube:
2626
def test_runs(self, tmp_path: Path):
2727
# Arrange
2828
(tmp_path / "pyproject.toml").write_text(
@@ -37,7 +37,7 @@ def test_runs(self, tmp_path: Path):
3737
# Act
3838
runner = CliRunner()
3939
with change_cwd(tmp_path):
40-
result = runner.invoke(app, ["sonarqube-config"])
40+
result = runner.invoke(app, ["sonarqube"])
4141

4242
# Assert
4343
assert result.exit_code == 0, result.output
@@ -49,7 +49,7 @@ def test_missing_key(self, tmp_path: Path):
4949
# Act
5050
runner = CliRunner()
5151
with change_cwd(tmp_path):
52-
result = runner.invoke(app, ["sonarqube-config"])
52+
result = runner.invoke(app, ["sonarqube"])
5353

5454
# Assert
5555
assert result.exit_code == 1, result.output

0 commit comments

Comments
 (0)