mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 21:10:27 -06:00
10 lines
188 B
Python
10 lines
188 B
Python
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'
|