Skip to content

Commit

Permalink
Merge pull request #1896 from rmartin16/new-prompt-space
Browse files Browse the repository at this point in the history
Ensure consistent spacing for prompts for New Project wizard
  • Loading branch information
freakboy3742 authored Jul 11, 2024
2 parents ec80fed + b4e390d commit 3eb7226
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changes/1896.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The spacing after the New Project wizard prompts are now consistent.
2 changes: 1 addition & 1 deletion src/briefcase/commands/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def select_option(

self.prompt_intro(intro=intro)
return _select_option(
prompt=f"{variable} [{default}]:",
prompt=f"{variable} [{default}]: ",
input=self.input,
default=default,
options=list(zip(options, options)),
Expand Down
6 changes: 3 additions & 3 deletions tests/commands/new/test_select_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_override_validation(new_command, mock_select_option, capsys):
in capsys.readouterr().out
)
mock_select_option.assert_called_once_with(
prompt="Variable [1]:",
prompt="Variable [1]: ",
input=new_command.input,
default="1",
options=[
Expand All @@ -63,7 +63,7 @@ def test_default_value_has_correct_index(new_command, mock_select_option):
override_value=None,
)
mock_select_option.assert_called_once_with(
prompt="Variable [2]:",
prompt="Variable [2]: ",
input=new_command.input,
default="2",
options=[
Expand All @@ -84,7 +84,7 @@ def test_default_default_is_one(new_command, mock_select_option):
override_value=None,
)
mock_select_option.assert_called_once_with(
prompt="Variable [1]:",
prompt="Variable [1]: ",
input=new_command.input,
default="1",
options=[
Expand Down

0 comments on commit 3eb7226

Please sign in to comment.