Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Sep 10, 2024
1 parent 6cab9d7 commit 31cdbd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tutorials/import_file/import_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
UnitLength,
WebSocketRequest,
)
from kittycad.models.input_format import obj
from kittycad.models.input_format import OptionObj
from kittycad.models.modeling_cmd import (
OptionDefaultCameraFocusOn,
OptionImportFiles,
OptionTakeSnapshot,
)
from kittycad.models.web_socket_request import modeling_cmd_req
from kittycad.models.web_socket_request import OptionModelingCmdReq


def test_ws_import():
Expand All @@ -49,12 +49,12 @@ def test_ws_import():
ImportFile(data=content, path=file_name)
# form the request
req = WebSocketRequest(
modeling_cmd_req(
OptionModelingCmdReq(
cmd=ModelingCmd(
OptionImportFiles(
files=[ImportFile(data=content, path=file_name)],
format=InputFormat(
obj(
OptionObj(
units=UnitLength.M,
coords=System(
forward=AxisDirectionPair(
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_ws_import():
cmd_id = uuid.uuid4()
# form the request
req = WebSocketRequest(
modeling_cmd_req(
OptionModelingCmdReq(
cmd=ModelingCmd(OptionDefaultCameraFocusOn(uuid=object_id)),
cmd_id=ModelingCmdId(cmd_id),
)
Expand All @@ -127,7 +127,7 @@ def test_ws_import():
cmd_id = uuid.uuid4()
# form the request
req = WebSocketRequest(
modeling_cmd_req(
OptionModelingCmdReq(
cmd=ModelingCmd(OptionTakeSnapshot(format=ImageFormat.PNG)),
cmd_id=ModelingCmdId(cmd_id),
)
Expand Down

0 comments on commit 31cdbd0

Please sign in to comment.