From 7fd804a80e8f5fd94eac2dccb82b2aa613da0bea Mon Sep 17 00:00:00 2001
From: Amandine PERRIN <amandine.perrin@pasteur.fr>
Date: Thu, 7 Sep 2023 11:43:28 +0200
Subject: [PATCH] uninstall panacota before testing installation

---
 test/test_install/test_make_prokka-quicktree.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_install/test_make_prokka-quicktree.py b/test/test_install/test_make_prokka-quicktree.py
index a892bf84..569c2d33 100755
--- a/test/test_install/test_make_prokka-quicktree.py
+++ b/test/test_install/test_make_prokka-quicktree.py
@@ -35,6 +35,9 @@ def test_install_prokka_quicktree():
     Test that when installing from a computer containing only prokka and quicktree, it installs
     PanACoTA, and returns the list of missing 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("prodigal")
     assert utils.check_installed("quicktree")
-- 
GitLab