From: Andrew Schoen Date: Wed, 22 Feb 2017 19:43:59 +0000 (-0600) Subject: tests: when using pytest mark decorators ensure all fixtures are defined X-Git-Tag: v2.2.0rc1~21^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1287%2Fhead;p=ceph-ansible.git tests: when using pytest mark decorators ensure all fixtures are defined Decorating a test method directly with a pytest mark seems to break if the test function does not explicitly define all pytest fixtures it expects to recieve. Signed-off-by: Andrew Schoen --- diff --git a/tests/functional/tests/test_install.py b/tests/functional/tests/test_install.py index 478581bb1..44436b3b8 100644 --- a/tests/functional/tests/test_install.py +++ b/tests/functional/tests/test_install.py @@ -15,7 +15,7 @@ class TestInstall(object): assert File(node["conf_path"]).is_file @pytest.mark.no_docker - def test_ceph_command_exists(self, Command): + def test_ceph_command_exists(self, Command, node): assert Command.exists("ceph")