From 404628f32445799f2be1358e57396a231060986a Mon Sep 17 00:00:00 2001 From: Amandine PERRIN <amandine.perrin@pasteur.fr> Date: Thu, 7 Sep 2023 11:46:04 +0200 Subject: [PATCH] uninstall panacota before testing installation --- test/test_install/test_make_prokka-quicktree.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_install/test_make_prokka-quicktree.py b/test/test_install/test_make_prokka-quicktree.py index 569c2d3..1382c32 100755 --- a/test/test_install/test_make_prokka-quicktree.py +++ b/test/test_install/test_make_prokka-quicktree.py @@ -134,6 +134,9 @@ def test_develop(): """ Test installing PanACoTA in developer mode, when prokka and barrnap are already installed """ + cmd = "python3 make uninstall" + error = "Error trying to uninstall PanACoTa" + utils.run_cmd(cmd, error) assert not utils.check_installed("PanACoTA") assert not utils.check_installed("barrnap") assert utils.check_installed('quicktree') @@ -191,6 +194,9 @@ def test_install_user(): Test that when installing from a computer containing only prokka, in user mode, it installs PanACoTA in /Users and returns list of dependencies """ + cmd = "python3 make uninstall" + error = "Error trying to uninstall PanACoTa" + utils.run_cmd(cmd, error) assert not utils.check_installed("barrnap") assert not utils.check_installed("mash") assert utils.check_installed("prokka") -- GitLab