MCPcopy Create free account
hub / github.com/PyCQA/isort / test_basic_printer_diff

Function test_basic_printer_diff

tests/unit/test_format.py:45–51  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

43
44
45def test_basic_printer_diff(capsys):
46 printer = isort.format.create_terminal_printer(color=False)
47 printer.diff_line("+ added line\n")
48 printer.diff_line("- removed line\n")
49
50 out, _ = capsys.readouterr()
51 assert out == "+ added line\n- removed line\n"
52
53
54def test_colored_printer_success(capsys):

Callers

nothing calls this directly

Calls 1

diff_lineMethod · 0.45

Tested by

no test coverage detected