MCPcopy
hub / github.com/PyCQA/isort / test_diff_stream

Function test_diff_stream

tests/unit/test_api.py:81–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81def test_diff_stream() -> None:
82 output = StringIO()
83 assert api.sort_stream(StringIO("import b\nimport a\n"), output, show_diff=True)
84 output.seek(0)
85 assert fixed_diff in output.read()
86
87
88def test_sort_code_string_mixed_newlines():

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
seekMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…