Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
fix: adapt integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwagnerdev committed Nov 13, 2024
1 parent 5863656 commit 4cd6654
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/integration/test_02_planning_and_execution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import pytest
import os
import asyncio
import os

import pytest

from wandelbots import Instance, MotionGroup, Planner
from wandelbots.exceptions import MotionExecutionInterruptedError
from wandelbots.types import Vector3d as v
Expand Down Expand Up @@ -42,9 +44,9 @@ async def test_motion_planning_and_execution():
assert plan_result.motion is not None, "Failed to plan motion"

# Execute planned motion
async def execute_in_background(motion: str, speed: int):
async def execute_in_background(plan_result: Planner.PlanResult, speed: int):
try:
async for move_response in motion_group.execute_motion_stream_async(motion, speed):
async for move_response in motion_group.execute_motion_stream_async(plan_result, speed):
print(move_response)
except MotionExecutionInterruptedError:
print("Motion execution was interrupted")
Expand Down

0 comments on commit 4cd6654

Please sign in to comment.