added slow down test
This commit is contained in:
parent
bf8d5c450e
commit
56e31a334b
@ -24,12 +24,11 @@ class TestOrchestrator(unittest.TestCase):
|
||||
self.assertEqual(current_vel, target_vel)
|
||||
|
||||
def test_slow_down_if_passing_not_possible(self):
|
||||
self.orc.tls = {'1': {'color': 'RED', 'switching_time': 1, 'last_switch': self.timestamp}}
|
||||
self.orc.tls = {'1': {'color': 'RED', 'switching_time': 100000, 'last_switch': self.timestamp}}
|
||||
tl_geo = {'cursor': [
|
||||
{'id': '1', 'calculatedRange': 1000}
|
||||
]}
|
||||
current_vel = 50.0
|
||||
current_vel = 130.0
|
||||
|
||||
target_vel = self.orc._compute_velocity(tl_geo, current_vel)
|
||||
self.assertEqual(current_vel, target_vel)
|
||||
print(target_vel)
|
||||
self.assertNotEqual(current_vel, target_vel)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user