Skip to content

Commit e102aa8

Browse files
style: ruff format test_cli.py
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5330087 commit e102aa8

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

packages/create-awesome-python-app/tests/test_cli.py

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -342,21 +342,24 @@ def test_expand_preserves_trailing_project_directory() -> None:
342342
"/tmp/app",
343343
]
344344
# CI-shaped argv: flags between last addon and directory.
345-
assert _preprocess_cli_argv(
346-
[
347-
"cpa",
348-
"--template",
349-
"fastapi-starter",
350-
"--addons",
351-
"fastapi-docker",
352-
"--addons",
353-
"github-setup",
354-
"--no-interactive",
355-
"--no-install",
356-
"--force",
357-
"/tmp/app",
358-
]
359-
)[-1] == "/tmp/app"
345+
assert (
346+
_preprocess_cli_argv(
347+
[
348+
"cpa",
349+
"--template",
350+
"fastapi-starter",
351+
"--addons",
352+
"fastapi-docker",
353+
"--addons",
354+
"github-setup",
355+
"--no-interactive",
356+
"--no-install",
357+
"--force",
358+
"/tmp/app",
359+
]
360+
)[-1]
361+
== "/tmp/app"
362+
)
360363
# Space-separated addons with directory last (no prior positional).
361364
assert _preprocess_cli_argv(
362365
["cpa", "--addons", "fastapi-docker", "github-setup", "/tmp/app"]
@@ -369,6 +372,7 @@ def test_expand_preserves_trailing_project_directory() -> None:
369372
"/tmp/app",
370373
]
371374

375+
372376
def test_space_separated_addons_after_project_directory(
373377
tmp_path: Path, monkeypatch
374378
) -> None:

0 commit comments

Comments
 (0)