Skip to content

Commit

Permalink
use preview=False in BlackBaseTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Mar 14, 2022
1 parent 71ba4a7 commit 5f612b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def err(msg: str, **kwargs: Any) -> None:
err_lines.append(msg)

with patch("black.debug.out", out):
DebugVisitor.show(source, preview=True)
DebugVisitor.show(source, preview=False)
actual = "\n".join(out_lines) + "\n"
log_name = ""
if expected != actual:
Expand Down
2 changes: 1 addition & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def dump_to_stderr(*output: str) -> str:

class BlackBaseTestCase(unittest.TestCase):
def assertFormatEqual(self, expected: str, actual: str) -> None:
_assert_format_equal(expected, actual, preview=True)
_assert_format_equal(expected, actual, preview=False)


def read_data(name: str, data: bool = True) -> Tuple[str, str]:
Expand Down

0 comments on commit 5f612b7

Please sign in to comment.