]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: when using pytest mark decorators ensure all fixtures are defined 1287/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 22 Feb 2017 19:43:59 +0000 (13:43 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 22 Feb 2017 19:43:59 +0000 (13:43 -0600)
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 <aschoen@redhat.com>
tests/functional/tests/test_install.py

index 478581bb1151c238b9891cb560e8a7c8ee68b4bd..44436b3b86cad45e8fff515ba7cffeeb71170460 100644 (file)
@@ -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")