Skip to content

Commit

Permalink
Fix: Change out terminal function to not apply formatting and escaping
Browse files Browse the repository at this point in the history
This fixes the output of errors created by pylint which include ANSI
color escapes. With this fix these output is displayed correctly again.
  • Loading branch information
bjoernricks committed Nov 15, 2022
1 parent fe8bfd7 commit 24d0e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autohooks/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def out(message: str):
Args:
message: Message to print
"""
__term.print(message)
__term.out(message)


def overwrite(message: str, new_line: bool = False):
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_ok(self):

def test_out(self):
out("foo bar")
self.term.print.assert_called_with("foo bar")
self.term.out.assert_called_with("foo bar")

def test_warning(self):
warning("foo bar")
Expand Down

0 comments on commit 24d0e21

Please sign in to comment.