changeset 7127:f235038d6902

tests: Removed undocumented and unused option VCS_REMOVE_TEST_DIRS and related code
author Branko Majic <branko@majic.rs>
date Sun, 11 Feb 2018 00:26:52 +0100
parents 5c0dc6fe1e40
children 85d812ab4c64
files kallithea/tests/vcs/base.py
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/vcs/base.py	Sun Feb 11 00:14:52 2018 +0100
+++ b/kallithea/tests/vcs/base.py	Sun Feb 11 00:26:52 2018 +0100
@@ -4,7 +4,6 @@
 """
 import os
 import time
-import shutil
 import datetime
 
 from kallithea.lib import vcs
@@ -81,21 +80,10 @@
                                      author=unicode(commit['author']),
                                      date=commit['date'])
 
-    @classmethod
-    def teardown_class(cls):
-        if not getattr(cls, 'recreate_repo_per_test', False) and \
-            'VCS_REMOVE_TEST_DIRS' in os.environ:
-            shutil.rmtree(cls.repo_path)
-
     def setup_method(self, method):
         if getattr(self, 'recreate_repo_per_test', False):
             self.__class__.setup_class()
 
-    def teardown_method(self, method):
-        if getattr(self, 'recreate_repo_per_test', False) and \
-            'VCS_REMOVE_TEST_DIRS' in os.environ:
-            shutil.rmtree(self.repo_path)
-
 
 # For each backend create test case class
 for alias in SCM_TESTS: