test: export_brep works with BytesIO

This commit is contained in:
Ethan Rooke 2024-11-15 14:48:50 -06:00
parent 7b7c2e07b1
commit 056efe6961
No known key found for this signature in database
GPG key ID: B2874A77049A5923

View file

@ -25,6 +25,7 @@ license:
"""
import io
import json
import os
import re
@ -180,5 +181,11 @@ def test_pathlike_exporters(tmp_path, format, exporter):
exporter(box, path)
def test_export_brep_in_memory():
buffer = io.BytesIO()
box = Box(1, 1, 1).locate(Pos(-1, -2, -3))
export_brep(box, buffer)
if __name__ == "__main__":
unittest.main()