From fba0a1b19aaa3483b59997b084b168261a8c33b6 Mon Sep 17 00:00:00 2001 From: nsmartinx Date: Sun, 26 May 2024 12:53:24 -0400 Subject: [PATCH] formatting --- tests/test_search_pattern.py | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/test_search_pattern.py b/tests/test_search_pattern.py index cd872ba8..4afe16a2 100644 --- a/tests/test_search_pattern.py +++ b/tests/test_search_pattern.py @@ -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. # """ @@ -45,7 +51,7 @@ def drone_odometry(): # yield search_pattern_instance # # -#class TestSearchPattern: +# class TestSearchPattern: # """ # Tests for the SearchPattern class methods # """ @@ -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 @@ -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 -# \ No newline at end of file +#