[pytests/mpd] ensure that mpc is called
This commit is contained in:
parent
d7370307f2
commit
3beb86bb38
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue