def setup_redis(self, revision=None): from pootle.core.models import Revision if revision is None: Revision.initialize(force=True) else: Revision.set(revision)
def revision(request, clear_cache): """Sets up the cached revision counter for each test call.""" from pootle.core.models import Revision from pootle_store.models import Unit if request.node.get_marker("django_db"): Revision.set(Unit.max_revision()) else: Revision.initialize()
def setup_redis(self): from pootle.core.models import Revision Revision.initialize(force=True)
def create_revision(): Revision.initialize()
def create_revision(self): Revision.initialize()
def revision(): """Sets up the revision counter for each test call.""" from pootle.core.models import Revision Revision.initialize(force=True)