Update api spec (#202)
* YOYO NEW API SPEC! * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
committed by
GitHub
parent
a3089ef956
commit
042bb964e5
@ -173,13 +173,13 @@ async def test_file_convert_stl_async():
|
||||
file.close()
|
||||
|
||||
# Get the fc.
|
||||
result: Optional[
|
||||
Union[FileConversion, Error]
|
||||
] = await create_file_conversion.asyncio(
|
||||
client=client,
|
||||
body=content,
|
||||
src_format=FileImportFormat.STL,
|
||||
output_format=FileExportFormat.OBJ,
|
||||
result: Optional[Union[FileConversion, Error]] = (
|
||||
await create_file_conversion.asyncio(
|
||||
client=client,
|
||||
body=content,
|
||||
src_format=FileImportFormat.STL,
|
||||
output_format=FileExportFormat.OBJ,
|
||||
)
|
||||
)
|
||||
|
||||
assert isinstance(result, FileConversion)
|
||||
@ -212,13 +212,13 @@ async def test_file_convert_obj_async():
|
||||
file.close()
|
||||
|
||||
# Get the fc.
|
||||
result: Optional[
|
||||
Union[FileConversion, Error]
|
||||
] = await create_file_conversion.asyncio(
|
||||
client=client,
|
||||
body=content,
|
||||
src_format=FileImportFormat.OBJ,
|
||||
output_format=FileExportFormat.STL,
|
||||
result: Optional[Union[FileConversion, Error]] = (
|
||||
await create_file_conversion.asyncio(
|
||||
client=client,
|
||||
body=content,
|
||||
src_format=FileImportFormat.OBJ,
|
||||
output_format=FileExportFormat.STL,
|
||||
)
|
||||
)
|
||||
|
||||
assert isinstance(result, FileConversion)
|
||||
@ -556,11 +556,11 @@ def test_text_to_cad():
|
||||
while (
|
||||
body.status == ApiCallStatus.IN_PROGRESS or body.status == ApiCallStatus.QUEUED
|
||||
) and time.time() - start_time < 120:
|
||||
result_status: Optional[
|
||||
Union[TextToCad, Error]
|
||||
] = get_text_to_cad_model_for_user.sync(
|
||||
client=client,
|
||||
id=body.id,
|
||||
result_status: Optional[Union[TextToCad, Error]] = (
|
||||
get_text_to_cad_model_for_user.sync(
|
||||
client=client,
|
||||
id=body.id,
|
||||
)
|
||||
)
|
||||
|
||||
if isinstance(result_status, Error) or result_status is None:
|
||||
|
Reference in New Issue
Block a user