From 3beb86bb3825f0c0d31f6027c16a7205f519c23f Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 20 Jun 2020 13:38:00 +0200 Subject: [PATCH] [pytests/mpd] ensure that mpc is called --- pytests/modules/contrib/test_mpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytests/modules/contrib/test_mpd.py b/pytests/modules/contrib/test_mpd.py index 4cce0ab..ba06248 100644 --- a/pytests/modules/contrib/test_mpd.py +++ b/pytests/modules/contrib/test_mpd.py @@ -31,7 +31,7 @@ def test_host2(mocker): module_with_host.update() 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(): pytest.raises(KeyError, modules.contrib.mpd.Module, config=core.config.Config(['-p', 'mpd.layout="mpd.inexistent"']), theme=None)