blob: c806829aa2645da8439816c5b95f716711ed7d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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'
|