2025-02-09 21:33:11 +01:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2025-02-09 21:10:22 +01:00
|
|
|
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'
|