Got state function test for shuffle working

This commit is contained in:
Ambika Nair 2020-06-19 05:00:56 -04:00
parent 0574775995
commit f4a5d05c1e

View file

@ -9,3 +9,8 @@ def mpd_module():
def test_shuffle_off_by_default(mpd_module):
assert not mpd_module._shuffle
def test_shuffle_state(mocker, mpd_module):
widget = mocker.Mock()
widget.name = 'mpd.shuffle'
assert mpd_module.state(widget) == 'shuffle-off'