use obj for mass and volume tests

This commit is contained in:
Kurt Hutten IrevDev
2022-06-14 21:57:15 +10:00
parent 50313ec810
commit 2ae59c5ca3
2 changed files with 1946 additions and 4 deletions

1942
assets/testing.obj Normal file

File diff suppressed because it is too large Load Diff

View File

@ -113,7 +113,7 @@ def test_file_mass():
client = ClientFromEnv()
dir_path = os.path.dirname(os.path.realpath(__file__))
file = open(os.path.join(dir_path, "../assets/testing.stl"), "rb")
file = open(os.path.join(dir_path, "../assets/testing.obj"), "rb")
content = file.read()
file.close()
@ -121,7 +121,7 @@ def test_file_mass():
fm: FileMass = create_file_mass.sync(
client=client,
body=content,
src_format=FileSourceFormat.STL,
src_format=FileSourceFormat.OBJ,
material_density=1.0)
assert fm is not None
@ -139,7 +139,7 @@ def test_file_volume():
client = ClientFromEnv()
dir_path = os.path.dirname(os.path.realpath(__file__))
file = open(os.path.join(dir_path, "../assets/testing.stl"), "rb")
file = open(os.path.join(dir_path, "../assets/testing.obj"), "rb")
content = file.read()
file.close()
@ -147,7 +147,7 @@ def test_file_volume():
fv: FileVolume = create_file_volume.sync(
client=client,
body=content,
src_format=FileSourceFormat.STL)
src_format=FileSourceFormat.OBJ)
assert fv is not None