def setUpClass(cls): if DatabaseContext.THREADS_MANAGER_CYCLING == False: DatabaseContext.THREADS_MANAGER_CYCLING = True ThreadsManager().start() CollectionsSimulator.build_big_col('col', ['id']) CollectionsSimulator.build_users_col()
def setUpClass(cls): CollectionsSimulator.build_single_col('col', None)
def tearDownClass(cls): CollectionsSimulator.clean()
def setUpClass(cls): CollectionsSimulator.build_single_col('col', None) CollectionsSimulator.build_big_col('big-col', None) CollectionsSimulator.build_big_col('big-col-with-index', ['id'])
def tearDownClass(cls): CollectionsSimulator.clean() DatabaseContext.THREADS_MANAGER_CYCLING = False
def tearDownClass(cls): CollectionsSimulator.clean() DatabaseContext.CACHE_FILE_SIZE = 100