Exemplo n.º 1
0
 def prepare_testbed(cls):
     if not cls.cleaned_up:
         FlushDB(model='DateModel').run()
         cls.cleaned_up = True
Exemplo n.º 2
0
 def prepare_testbed(cls, reset=False):
     if (not cls.cleaned_up) or reset:
         FlushDB(model='Uniques,UniqRelation,OtherUniqRelation',
                 wait_sync=True).run()
         cls.cleaned_up = True
Exemplo n.º 3
0
 def clear_bucket(cls, reset):
     if not cls.cleaned_up or reset:
         FlushDB(model='Student,TimeTable', wait_sync=True).run()
         cls.cleaned_up = True
Exemplo n.º 4
0
 def prepare_testbed(cls, reset=False):
     if (not cls.cleaned_up) or reset:
         FlushDB(model='Student', wait_sync=True).run()
         cls.cleaned_up = True
Exemplo n.º 5
0
 def prepare_testbed(cls, force=False):
     if force or not cls.cleaned_up:
         FlushDB(model=('User,Employee,Scholar,TimeTable,'
                        'Permission,AbstractRole,Role')).run()
         cls.cleaned_up = True