Skip to content

Commit

Permalink
Add basic test for .glb file
Browse files Browse the repository at this point in the history
  • Loading branch information
julianstirling committed May 20, 2024
1 parent 583f8cf commit 43327f0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_glb_codec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import pytest
import tests.test_helpers as helpers


def test_glb_codec():
"""
Basic test of the GLB codec plugin.
"""
test_file = helpers.get_test_file_location("cube_assy.py")

command = [
"python",
"src/cq_cli/main.py",
"--codec",
"glb",
"--infile",
test_file,
]
out, err, exitcode = helpers.cli_call(command)

assert out.decode().startswith("b'glTF")


0 comments on commit 43327f0

Please sign in to comment.