Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def tearDown(self):
import transaction
transaction.abort()
testing.tearDown()
def config(request):
"""Return dummy testing configuration."""
config = testing.setUp()
config.include('tzf.pyramid_yml')
config.config_defaults('adhocracy_frontend:defaults.yaml')
request.addfinalizer(testing.tearDown)
return config
def pyramid_config():
config = pyramid.testing.setUp()
try:
config.add_route("hi", "/message")
config.add_view(hi, route_name="hi")
yield config
finally:
pyramid.testing.tearDown()
def tearDown(self):
testing.tearDown()
del self.testapp
del self.grids
def tearDown(self):
testing.tearDown()
def tearDown(self):
testing.tearDown()
def tearDown(self):
testing.tearDown()
def tearDown(self):
testing.tearDown()
def tearDown(self):
testing.tearDown()
def tearDown():
from depot.manager import DepotManager
from kotti import events
from kotti import security
from kotti.message import _inject_mailer
# These should arguable use the configurator, so they don't need
# to be torn down separately:
events.clear()
security.reset()
_inject_mailer[:] = []
transaction.abort()
DepotManager._clear()
testing.tearDown()