Skip to content

Commit

Permalink
.display_util.notify: dont wrap
Browse files Browse the repository at this point in the history
As this function is supposed to be an analogue for print, we do not want
it to wrap by default.
  • Loading branch information
alexzorin committed Nov 12, 2020
1 parent 627aace commit d27e99c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion certbot/certbot/display/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def notify(msg):
"""
zope.component.getUtility(interfaces.IDisplay).notification(
msg, pause=False, decorate=False
msg, pause=False, decorate=False, wrap=False
)


Expand Down
2 changes: 1 addition & 1 deletion certbot/tests/display/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def test_notify(self, mock_util):
from certbot.display.util import notify
notify("Hello World")
mock_util().notification.assert_called_with(
"Hello World", pause=False, decorate=False
"Hello World", pause=False, decorate=False, wrap=False
)


Expand Down

0 comments on commit d27e99c

Please sign in to comment.