1
0
Fork 0
pre-commit/tests/output_test.py

10 lines
188 B
Python
Raw Normal View History

import io
from pre_commit import output
def test_output_write_writes():
stream = io.BytesIO()
output.write('hello world', stream)
assert stream.getvalue() == b'hello world'