use obj for mass and volume tests
This commit is contained in:
1942
assets/testing.obj
Normal file
1942
assets/testing.obj
Normal file
File diff suppressed because it is too large
Load Diff
@ -113,7 +113,7 @@ def test_file_mass():
|
|||||||
client = ClientFromEnv()
|
client = ClientFromEnv()
|
||||||
|
|
||||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
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()
|
content = file.read()
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ def test_file_mass():
|
|||||||
fm: FileMass = create_file_mass.sync(
|
fm: FileMass = create_file_mass.sync(
|
||||||
client=client,
|
client=client,
|
||||||
body=content,
|
body=content,
|
||||||
src_format=FileSourceFormat.STL,
|
src_format=FileSourceFormat.OBJ,
|
||||||
material_density=1.0)
|
material_density=1.0)
|
||||||
|
|
||||||
assert fm is not None
|
assert fm is not None
|
||||||
@ -139,7 +139,7 @@ def test_file_volume():
|
|||||||
client = ClientFromEnv()
|
client = ClientFromEnv()
|
||||||
|
|
||||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
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()
|
content = file.read()
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ def test_file_volume():
|
|||||||
fv: FileVolume = create_file_volume.sync(
|
fv: FileVolume = create_file_volume.sync(
|
||||||
client=client,
|
client=client,
|
||||||
body=content,
|
body=content,
|
||||||
src_format=FileSourceFormat.STL)
|
src_format=FileSourceFormat.OBJ)
|
||||||
|
|
||||||
assert fv is not None
|
assert fv is not None
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user