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 <aschoen@redhat.com>
pull/1287/head
Andrew Schoen 2017-02-22 13:43:59 -06:00
parent 503ec9be57
commit a551ad97bb
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class TestInstall(object):
assert File(node["conf_path"]).is_file assert File(node["conf_path"]).is_file
@pytest.mark.no_docker @pytest.mark.no_docker
def test_ceph_command_exists(self, Command): def test_ceph_command_exists(self, Command, node):
assert Command.exists("ceph") assert Command.exists("ceph")