Skip to content

Commit e34c55a

Browse files
committed
test(publish): assert no prompt text in non-interactive mode
1 parent 575be13 commit e34c55a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/console/commands/test_publish.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ def test_publish_build_no_interaction_skips_confirmation(
233233
exit_code = app_tester.execute("publish --build --no-interaction --dry-run")
234234

235235
assert exit_code == 0
236+
output = app_tester.io.fetch_output()
237+
error = app_tester.io.fetch_error()
238+
236239
confirm.assert_not_called()
240+
assert "Build anyway?" not in output
241+
assert "Build anyway?" not in error
237242
command_call.assert_called_once_with("build", args="--output dist")
238243
assert publisher_publish.call_count == 1

0 commit comments

Comments
 (0)