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