예제 #1
0
    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()
예제 #2
0
 def setUpClass(cls):
     CollectionsSimulator.build_single_col('col', None)
예제 #3
0
 def tearDownClass(cls):
     CollectionsSimulator.clean()
예제 #4
0
 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'])
예제 #5
0
 def tearDownClass(cls):
     CollectionsSimulator.clean()
     DatabaseContext.THREADS_MANAGER_CYCLING = False
예제 #6
0
 def tearDownClass(cls):
     CollectionsSimulator.clean()
     DatabaseContext.CACHE_FILE_SIZE = 100