Got state function test for shuffle working
This commit is contained in:
parent
0574775995
commit
f4a5d05c1e
1 changed files with 5 additions and 0 deletions
|
@ -9,3 +9,8 @@ def mpd_module():
|
||||||
|
|
||||||
def test_shuffle_off_by_default(mpd_module):
|
def test_shuffle_off_by_default(mpd_module):
|
||||||
assert not mpd_module._shuffle
|
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'
|
||||||
|
|
Loading…
Reference in a new issue