11 lines
224 B
Python
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'
|