Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmartinx committed May 26, 2024
1 parent 5193dfd commit fba0a1b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions tests/test_search_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@ def drone_odometry():
"""
Creates an OdometryAndTime instance representing the drone's current position.
"""
position = drone_odometry_local.DronePositionLocal.create(0.0, 0.0, -SEARCH_HEIGHT)[1]
orientation = drone_odometry_local.DroneOrientationLocal.create_new(0.0, 0.0, 0.0)[1]
odometry_data = drone_odometry_local.DroneOdometryLocal.create(position, orientation)[1]
position = drone_odometry_local.DronePositionLocal.create(0.0, 0.0, -SEARCH_HEIGHT)[
1
]
orientation = drone_odometry_local.DroneOrientationLocal.create_new(0.0, 0.0, 0.0)[
1
]
odometry_data = drone_odometry_local.DroneOdometryLocal.create(
position, orientation
)[1]

result, state = odometry_and_time.OdometryAndTime.create(odometry_data)
assert result
yield state


#@pytest.fixture()
#def search_maker(drone_odometry):
# @pytest.fixture()
# def search_maker(drone_odometry):
# """
# Initializes a SearchPattern instance.
# """
Expand All @@ -45,7 +51,7 @@ def drone_odometry():
# yield search_pattern_instance
#
#
#class TestSearchPattern:
# class TestSearchPattern:
# """
# Tests for the SearchPattern class methods
# """
Expand All @@ -63,7 +69,7 @@ def drone_odometry():
# """
# Test continue_search method when drone is not at the target location.
# """
# search_maker.set_target_location()
# search_maker.set_target_location()
# command = search_maker.continue_search(drone_odometry)
#
# assert command.get_command_type() == decision_command.DecisionCommand.CommandType.MOVE_TO_ABSOLUTE_POSITION
Expand All @@ -88,4 +94,4 @@ def drone_odometry():
#
# assert search_maker.current_pos_in_ring == 0 # First position in a ring is 0
# assert search_maker.current_ring == 1 # Should switch to the first ring
#
#

0 comments on commit fba0a1b

Please sign in to comment.