def prepare_testbed(cls): if not cls.cleaned_up: FlushDB(model='DateModel').run() cls.cleaned_up = True
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
def clear_bucket(cls, reset): if not cls.cleaned_up or reset: FlushDB(model='Student,TimeTable', wait_sync=True).run() cls.cleaned_up = True
def prepare_testbed(cls, reset=False): if (not cls.cleaned_up) or reset: FlushDB(model='Student', wait_sync=True).run() cls.cleaned_up = True
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