From: Alfredo Deza Date: Wed, 17 Jul 2013 19:35:11 +0000 (-0400) Subject: remove another invalid test X-Git-Tag: v1.2~31^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e68140efeed098771c6a5a2d934034476d42dd7;p=ceph-deploy.git remove another invalid test --- diff --git a/ceph_deploy/test/test_cli_new.py b/ceph_deploy/test/test_cli_new.py index 23ea2db..35608d1 100644 --- a/ceph_deploy/test/test_cli_new.py +++ b/ceph_deploy/test/test_cli_new.py @@ -30,26 +30,6 @@ def test_write_global_conf_section(tmpdir, cli): assert cfg.sections() == ['global'] -def test_exists(tmpdir, cli): - with cli( - args=['ceph-deploy', 'new'], - ): - pass - with pytest.raises(cli.Failed) as err: - with cli( - args=['ceph-deploy', 'new'], - stderr=subprocess.PIPE, - ) as p: - got = p.stderr.read() - assert got == """\ -ceph-deploy: Cluster config exists already: ceph.conf -""" - - assert err.value.status == 1 - # no temp files left around - assert {p.basename for p in tmpdir.listdir()} == {'ceph.conf'} - - def pytest_funcarg__newcfg(request): tmpdir = request.getfuncargvalue('tmpdir') cli = request.getfuncargvalue('cli')