style: format with black and fix ruff SIM117 warnings
- Merge nested with statements in test_project_root.py - Reformat multi-line calls in test_cli.py and update.py
This commit is contained in:
+4
-2
@@ -31,7 +31,10 @@ class TestCliHelp:
|
||||
runner = CliRunner()
|
||||
result = runner.invoke(cli, ["update", "--help"])
|
||||
assert result.exit_code == 0
|
||||
assert "update" in result.output.lower() or "reinstall" in result.output.lower()
|
||||
assert (
|
||||
"update" in result.output.lower()
|
||||
or "reinstall" in result.output.lower()
|
||||
)
|
||||
|
||||
def test_upgrade_alias_exists(self) -> None:
|
||||
"""upgrade should be an alias for update."""
|
||||
@@ -96,4 +99,3 @@ class TestCliDefaultBehavior:
|
||||
assert result.exit_code == 0
|
||||
call_args = mock_run.call_args[0][0]
|
||||
assert "--dangerously-skip-permissions" in call_args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user