[pytests/mpd] ensure that mpc is called

This commit is contained in:
Tobias Witek 2020-06-20 13:38:00 +02:00
parent d7370307f2
commit 3beb86bb38

View file

@ -31,7 +31,7 @@ def test_host2(mocker):
module_with_host.update() module_with_host.update()
args, kwargs = cli.execute.call_args args, kwargs = cli.execute.call_args
assert " -h sample-host" in args[0] assert " -h sample-host" in args[0] and "mpc" in args[0]
def test_bad_layout(): def test_bad_layout():
pytest.raises(KeyError, modules.contrib.mpd.Module, config=core.config.Config(['-p', 'mpd.layout="mpd.inexistent"']), theme=None) pytest.raises(KeyError, modules.contrib.mpd.Module, config=core.config.Config(['-p', 'mpd.layout="mpd.inexistent"']), theme=None)