()
| 79 | |
| 80 | |
| 81 | def 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 | |
| 88 | def test_sort_code_string_mixed_newlines(): |