We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ef4634 commit 6720290Copy full SHA for 6720290
2 files changed
src/poetry/console/commands/publish.py
@@ -82,7 +82,7 @@ def handle(self) -> int:
82
return 1
83
84
if not self.io.is_interactive():
85
- self.line_error(
+ self.line(
86
"<warning>Warning: Existing distribution files were found in "
87
f"{dist_dir}; continuing because --no-interaction was set.</warning>"
88
)
tests/console/commands/test_publish.py
@@ -242,6 +242,6 @@ def test_publish_build_no_interaction_skips_confirmation(
242
assert (
243
"Warning: Existing distribution files were found in dist; continuing because"
244
" --no-interaction was set."
245
- ) in error
+ ) in output
246
command_call.assert_called_once_with("build", args="--output dist")
247
assert publisher_publish.call_count == 1
0 commit comments