From 4ecd4372bf28c05bc4d83c22f093c495e97bf0c9 Mon Sep 17 00:00:00 2001 From: Amandine PERRIN <amandine.perrin@pasteur.fr> Date: Thu, 7 Sep 2023 12:31:53 +0200 Subject: [PATCH] Remove check pip show --- .../test_make_prokka-quicktree.py | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/test/test_install/test_make_prokka-quicktree.py b/test/test_install/test_make_prokka-quicktree.py index 3315f54..48bc499 100755 --- a/test/test_install/test_make_prokka-quicktree.py +++ b/test/test_install/test_make_prokka-quicktree.py @@ -52,17 +52,17 @@ def test_install_prokka_quicktree(): assert utils.check_installed("prokka") assert utils.check_installed("PanACoTA") assert utils.check_installed('quicktree') - # cmd = "pip3 show PanACoTA" - # err = "error pip3" - # stdout = "stdout_pip3show.out" - # with open(stdout, "w") as stdof: - # utils.run_cmd(cmd, err, stdout=stdof, stderr=stdof) - # with open(stdout, "r") as stdof: - # for line in stdof: - # if line.startswith("Location"): - # loc = line.split()[-1] - # assert glob.glob(os.path.join(loc, r'PanACoTA*dist-info')) - # os.remove(stdout) + cmd = "pip3 show PanACoTA" + err = "error pip3" + stdout = "stdout_pip3show.out" + with open(stdout, "w") as stdof: + utils.run_cmd(cmd, err, stdout=stdof, stderr=stdof) + with open(stdout, "r") as stdof: + for line in stdof: + if line.startswith("Location"): + loc = line.split()[-1] + assert glob.glob(os.path.join(loc, r'PanACoTA*dist-info')) + os.remove(stdout) logfile = "install.log" content = ["Installing PanACoTA...", "DONE", "Some dependencies needed for some subcommands of PanACoTA are " @@ -148,18 +148,18 @@ def test_develop(): assert utils.check_installed("prokka") assert utils.check_installed("PanACoTA") assert utils.check_installed('quicktree') - cmd = "pip3 show PanACoTA" - err = "error pip3" - stdout = "stdout_pip3show.out" - with open(stdout, "w") as stdof: - utils.run_cmd(cmd, err, stdout=stdof, stderr=stdof) - # Check installation in develop mode - with open(stdout, "r") as stdof: - for line in stdof: - if line.startswith("Location"): - loc = line.split()[-1] - assert glob.glob(os.path.join(loc, r'PanACoTA*egg-info')) - os.remove(stdout) + # cmd = "pip3 show PanACoTA" + # err = "error pip3" + # stdout = "stdout_pip3show.out" + # with open(stdout, "w") as stdof: + # utils.run_cmd(cmd, err, stdout=stdof, stderr=stdof) + # # Check installation in develop mode + # with open(stdout, "r") as stdof: + # for line in stdof: + # if line.startswith("Location"): + # loc = line.split()[-1] + # assert glob.glob(os.path.join(loc, r'PanACoTA*egg-info')) + # os.remove(stdout) logfile = "install.log" content = ["Installing PanACoTA...", "Installing developer packages needed for PanACoTA", -- GitLab