From 58e7317c2818cff0e7fa3b2969eda1ddc0d0e8e4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 02 2015 16:00:23 +0000 Subject: Create and delete if they exists some more folders to store the git repos when setting up the tests --- diff --git a/tests/__init__.py b/tests/__init__.py index 18dac3e..e96f17a 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -88,6 +88,12 @@ class Modeltests(unittest.TestCase): if filename.endswith('.git') and os.path.isdir(filename): shutil.rmtree(filename) + for folder in ['tickets', 'repos', 'forks', 'docs']: + folder = os.path.join(HERE, folder) + if os.path.exists(folder): + shutil.rmtree(folder) + os.mkdir(folder) + self.session = progit.lib.model.create_tables(DB_PATH) # Create a couple of users