def tearDown(test): placelesssetup.tearDown(test) module.tearDown(test) testing.cleanDB(test.globs['conn'], test.globs['DBNAME']) test.globs['conn'].disconnect() testing.resetCaches() exceptionformatter.DEBUG_EXCEPTION_FORMATTER = \ test.orig_DEBUG_EXCEPTION_FORMATTER
def tearDown(test): module.tearDown(test) tearDownSerializers(test) transaction.abort() cleanDB(test.globs['conn']) cleanDB(test.globs['conn_other']) test.globs['conn'].close() test.globs['conn_other'].close() resetCaches()
def tearDown(test): # clean up the views we registered: # we use the fact that registering None unregisters whatever is # registered. We can't use an unregistration call because that # requires the object that was registered and we don't have that handy. # (OK, we could get it if we want. Maybe later.) zope.component.provideAdapter(None, ( IFolder, IXMLRPCRequest ), zope.interface, 'contents') module.tearDown(test, 'zope.app.publisher.xmlrpc.README')
def tearDown(test): placelesssetup.tearDown(test) module.tearDown(test) try: del Person._p_mongo_store_type except AttributeError: pass try: del SimplePerson._p_mongo_store_type except AttributeError: pass testing.cleanDB(test.globs['conn'], test.globs['DBNAME']) test.globs['conn'].disconnect() testing.resetCaches() exceptionformatter.DEBUG_EXCEPTION_FORMATTER = \ test.orig_DEBUG_EXCEPTION_FORMATTER
def modTearDown(test): assert len(zc.async.subscribers.signal_handlers) == 0 transaction.abort() zc.async.dispatcher.clear() uuidTearDown(test) zc.async.testing.tearDownDatetime() module.tearDown(test) zope.component.testing.tearDown(test) signal.signal(signal.SIGINT, signal.default_int_handler) if 'storage' in test.globs: test.globs['db'].close() test.globs['storage'].close() test.globs['storage'].cleanup() if 'async_storage' in test.globs: test.globs['async_db'].close() test.globs['async_storage'].close() test.globs['async_storage'].cleanup() for logs in (test.globs['event_logs'], test.globs['trace_logs']): logs.clear() logs.uninstall()
def tearDown(test): module.tearDown(test) testing.tearDown(test)
def tearDown(test): module.tearDown(test, 'zope.container.constraints_txt')
def tearDown(test): module.tearDown(test)
def modTearDown(test): module.tearDown(test) zope.component.testing.tearDown(test)
def moduleTearDown(test): # make sure scope func is empty before we tear down component architecture rdb.Session.remove() module.tearDown(test) cleanup.cleanUp()
def tearDown(test): test.globs['db'].close() test.globs['db1'].close() test.globs['db2'].close() module.tearDown(test) ZODB.tests.util.tearDown(test)
def tearDown(test): module.tearDown(test, name='README') CleanUp().tearDown()
def tearDown(test): test.globs['db'].close() test.globs['db2'].close() # the DB class masks the module because of __init__ shenanigans module.tearDown(test) ZODB.tests.util.tearDown(test)
def tearDown(test): module.tearDown(test) for db in ['streetlife', 'culture', test.globs['DBNAME']]: test.globs['conn'].drop_database(db) test.globs['conn'].disconnect()
def tearDown(test): module.tearDown(test) transaction.abort() cleanDB(test.globs['conn'], test.globs['DBNAME']) test.globs['conn'].disconnect() resetCaches()
def tearDown(test): module.tearDown(test, 'z3c.blobfile.readme_txt')
def tearDown(test): test.globs['db'].close() test.globs['db1'].close() test.globs['db2'].close() module.tearDown(test)