Skip to content

Commit

Permalink
removed controller test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Dec 2, 2023
1 parent 3aed0c8 commit 05a30e3
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions test/test_four_wheels_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,31 +62,10 @@ def draw(self, axes, elems):
pass


class MockController:
def __init__(self):
pass

def update(self, state):
pass

def get_target_accel_mps2(self):
return 0.0

def get_target_steer_rad(self):
return 0.0

def get_target_yaw_rate_rps(self):
return 0.0

def draw(self, axes, elems):
elems += axes.plot(0.0, 0.0, marker='o', color='g')


# test instance
spec = MockSpecification()
state = MockState()
controller = MockController()
vehicle = FourWheelsVehicle(state, spec, controller)
vehicle = FourWheelsVehicle(state, spec)


def test_attributes():
Expand Down Expand Up @@ -118,9 +97,13 @@ def test_initialize():
assert vehicle.rear_right_tire != None
assert vehicle.front_axle != None
assert vehicle.rear_axle != None
assert vehicle.controller != None
assert vehicle.controller == None
assert vehicle.sensors == None
assert vehicle.detector == None
assert vehicle.localizer == None
assert vehicle.show_zoom == True


def test_show_zoom():
vehicle_show_zoom = FourWheelsVehicle(state, spec, show_zoom=False)
assert vehicle_show_zoom.show_zoom == False
Expand Down

0 comments on commit 05a30e3

Please sign in to comment.