예제 #1
0
파일: testing.py 프로젝트: petrhosek/storm
 def tearDown(self):
     global_zstorm._reset()
     del sys.modules["patch_package"]
     sys.path.remove(self._package_dir)
     if "patch_1" in sys.modules:
         del sys.modules["patch_1"]
     super(ZStormResourceManagerTest, self).tearDown()
예제 #2
0
파일: testing.py 프로젝트: saoili/storm
 def tearDown(self):
     global_zstorm._reset()
     del sys.modules["patch_package"]
     sys.path.remove(self._package_dir)
     if "patch_1" in sys.modules:
         del sys.modules["patch_1"]
     super(ZStormResourceManagerTest, self).tearDown()
예제 #3
0
 def tearDown(self):
     transaction.abort()
     if django.VERSION >= (1, 1):
         settings._wrapped = None
     else:
         settings._target = None
     global_zstorm._reset()
     stores.have_configured_stores = False
     transaction.manager.free(transaction.get())
     super(DjangoBackendDisconnectionTests, self).tearDown()
예제 #4
0
 def tearDown(self):
     transaction.abort()
     if django.VERSION >= (1, 1):
         settings._wrapped = None
     else:
         settings._target = None
     global_zstorm._reset()
     stores.have_configured_stores = False
     transaction.manager.free(transaction.get())
     super(DjangoBackendDisconnectionTests, self).tearDown()
예제 #5
0
 def tearDown(self):
     if django.VERSION >= (1, 1):
         conf.settings._wrapped = None
     else:
         conf.settings._target = None
     # Reset the utility to cleanup the StoreSynchronizer's from the
     # transaction.
     global_zstorm._reset()
     stores.have_configured_stores = False
     # Free the transaction to avoid having errors that cross
     # test cases.
     transaction.manager.free(transaction.get())
     super(DjangoStoreTests, self).tearDown()
예제 #6
0
 def tearDown(self):
     global_zstorm._reset()
     del sys.modules["patch_package"]
     sys.modules.pop("patch_package.patch_1", None)
     super(ZStormResourceManagerTest, self).tearDown()