Fix tweaks not being reset for single tests

This commit is contained in:
Kovid Goyal 2013-08-25 06:47:39 +05:30
parent a4e0eeb854
commit 2cafeffc2e

View File

@ -21,14 +21,11 @@ class BaseTest(unittest.TestCase):
longMessage = True
maxDiff = None
@classmethod
def setUpClass(cls):
from calibre.utils.config_base import reset_tweaks_to_default
reset_tweaks_to_default()
def setUp(self):
from calibre.utils.recycle_bin import nuke_recycle
nuke_recycle()
from calibre.utils.config_base import reset_tweaks_to_default
reset_tweaks_to_default()
self.library_path = self.mkdtemp()
self.create_db(self.library_path)