1
0
Fork 0
pre-commit/tests/output_test.py
Daniel Baumann 3396d2e509
Merging upstream version 2.18.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 21:33:11 +01:00

11 lines
224 B
Python

from __future__ import annotations
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'