1
0
Fork 0
pre-commit/tests/output_test.py
Daniel Baumann c0d06915b7
Adding upstream version 2.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 21:10:22 +01:00

9 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'