Signed-off-by: Alfredo Deza <adeza@redhat.com>
@pytest.fixture
-def cli(request):
+def cli(request, tmpdir):
"""
Test command line behavior.
"""
# the tmpdir here will be the same value as the test function
# sees; we rely on that to let caller prepare and introspect
# any files the cli tool will read or create
- tmpdir = request.getfuncargvalue('tmpdir')
-
return CLITester(tmpdir=tmpdir)
@pytest.fixture
-def newcfg(request):
- tmpdir = request.getfuncargvalue('tmpdir')
+def newcfg(request, tmpdir):
fake_ip_addresses = lambda x: ['10.0.0.1']
def new(*args):