]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-22118] test: use new fixture syntax for cli_new
authorAlfredo Deza <adeza@redhat.com>
Wed, 29 Nov 2017 13:17:30 +0000 (08:17 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 29 Nov 2017 13:52:32 +0000 (08:52 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph_deploy/tests/test_cli_new.py

index 809709c19b4b645e83482ff8eb91f20955d97744..2ba221ec313b6b010e907567984ff5fc5faa190a 100644 (file)
@@ -6,6 +6,7 @@ from mock import patch
 from ceph_deploy import conf
 from ceph_deploy.cli import _main as main
 from ceph_deploy.tests.directory import directory
+import pytest
 
 
 def test_write_global_conf_section(tmpdir):
@@ -22,7 +23,8 @@ def test_write_global_conf_section(tmpdir):
     assert cfg.sections() == ['global']
 
 
-def pytest_funcarg__newcfg(request):
+@pytest.fixture
+def newcfg(request):
     tmpdir = request.getfuncargvalue('tmpdir')
     fake_ip_addresses = lambda x: ['10.0.0.1']