mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
test: export_brep works with BytesIO
This commit is contained in:
parent
7b7c2e07b1
commit
056efe6961
1 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue