Skip to content

Commit ab334c0

Browse files
committed
Lint
1 parent 22b3ace commit ab334c0

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/fastapi_cloud_cli/commands/reset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def reset() -> Any:
1818
config_dir = Path.cwd() / ".fastapicloud"
1919

2020
if not config_dir.exists():
21-
toolkit.print("No FastAPI Cloud configuration found in the current directory.")
21+
toolkit.print(
22+
"No FastAPI Cloud configuration found in the current directory."
23+
)
2224
logger.debug(f"Configuration directory not found: {config_dir}")
2325
raise typer.Exit(1)
2426

tests/test_cli_reset.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def test_reset_removes_fastapicloud_dir(tmp_path: Path) -> None:
2525
result = runner.invoke(app, ["reset"])
2626

2727
assert result.exit_code == 0
28-
assert "FastAPI Cloud configuration has been reset successfully! 🚀" in result.output
28+
assert (
29+
"FastAPI Cloud configuration has been reset successfully! 🚀" in result.output
30+
)
2931

3032
assert not config_dir.exists()
3133
assert not cloud_json.exists()
@@ -41,5 +43,7 @@ def test_reset_when_no_configuration_exists(tmp_path: Path) -> None:
4143
result = runner.invoke(app, ["reset"])
4244

4345
assert result.exit_code == 1
44-
assert "No FastAPI Cloud configuration found in the current directory." in result.output
45-
46+
assert (
47+
"No FastAPI Cloud configuration found in the current directory."
48+
in result.output
49+
)

0 commit comments

Comments
 (0)