willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 71 forks source link

Fix `set_rate` integration test #109

Closed willprice closed 5 years ago

willprice commented 6 years ago
    def test_set_rate(self):
        self.assertAlmostEqual(1.0, self.player.rate(), _RATE_DP)
        new_rate = 0.5

        self.player.set_rate(new_rate)
        sleep(0.2)

Fails with AssertionError: 0.5 != 1.0 within 2 places

tests/integration/test.py

willprice commented 5 years ago

Fixed in 7445bdd5cc006fec8462cf4cb9ae477ac73e8edd