Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBaecker committed Oct 25, 2024
1 parent 3382ed2 commit d1cadc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async def test_approaching_first_row(system: System, field: Field):
# pylint: disable=protected-access
assert system.gnss.current
assert system.gnss.current.location.distance(ROBOT_GEO_START_POSITION) < 0.01
system.field_navigation.field = field
system.field_navigation.field_id = field.id
system.current_navigation = system.field_navigation
system.automator.start()
await forward(until=lambda: system.automator.is_running)
Expand Down Expand Up @@ -304,7 +304,7 @@ async def drive_to_start():
assert system.odometer.prediction.point.x == pytest.approx(safe_start_point.x, abs=0.05)
assert system.odometer.prediction.point.y == pytest.approx(safe_start_point.y, abs=0.05)

system.field_navigation.field = field
system.field_navigation.field_id = field.id
system.current_navigation = system.field_navigation
system.automator.start()
await forward(until=lambda: system.automator.is_running)
Expand Down Expand Up @@ -335,7 +335,7 @@ async def drive_away():
assert system.odometer.prediction.point.x == pytest.approx(point_outside.x, abs=0.05)
assert system.odometer.prediction.point.y == pytest.approx(point_outside.y, abs=0.05)

system.field_navigation.field = field
system.field_navigation.field_id = field.id
system.current_navigation = system.field_navigation
system.automator.start()
await forward(until=lambda: system.automator.is_running)
Expand All @@ -353,7 +353,7 @@ async def test_complete_row(system: System, field: Field):
# pylint: disable=protected-access
assert system.gnss.current
assert system.gnss.current.location.distance(ROBOT_GEO_START_POSITION) < 0.01
system.field_navigation.field = field
system.field_navigation.field_id = field.id
system.current_navigation = system.field_navigation
system.automator.start()
await forward(until=lambda: system.automator.is_running)
Expand Down Expand Up @@ -394,7 +394,7 @@ async def test_complete_field(system: System, field: Field):
# pylint: disable=protected-access
assert system.gnss.current
assert system.gnss.current.location.distance(ROBOT_GEO_START_POSITION) < 0.01
system.field_navigation.field = system.field_provider.get_field(field.id)
system.field_navigation.field_id = field.id
system.current_navigation = system.field_navigation
system.automator.start()
await forward(until=lambda: system.automator.is_running)
Expand Down

0 comments on commit d1cadc9

Please sign in to comment.