Dangling test_jog2
This test often fail on the CI
__________________________________ test_jog2 ___________________________________
jogger = <bliss.common.axis.Axis object at 0x7fa691f02310>
def test_jog2(jogger):
jogger.jog(
300
) # this should go in the opposite direction because steps_per_unit < 0
t = 1 + jogger.jog_acctime
start_time = time.time()
time.sleep(t)
hw_position = jogger._hw_position
elapsed_time = (time.time() - start_time) - jogger.jog_acctime
> assert hw_position == pytest.approx(
300 * elapsed_time + jogger.acceleration * 0.5 * jogger.jog_acctime ** 2, 1e-2
)
E assert 458.846 == 452.1773099899292 ± 4.5e+00
E +458.846
E -452.1773099899292 ± 4.5e+00
tests/motors/test_axis.py:887: AssertionError
Edited by Cyril Guilloud