Пример #1
0
    def setup_redis(self, revision=None):
        from pootle.core.models import Revision

        if revision is None:
            Revision.initialize(force=True)
        else:
            Revision.set(revision)
Пример #2
0
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()
Пример #3
0
    def setup_redis(self):
        from pootle.core.models import Revision

        Revision.initialize(force=True)
Пример #4
0
def create_revision():
    Revision.initialize()
Пример #5
0
 def create_revision(self):
     Revision.initialize()
Пример #6
0
    def setup_redis(self):
        from pootle.core.models import Revision

        Revision.initialize(force=True)
Пример #7
0
def revision():
    """Sets up the revision counter for each test call."""
    from pootle.core.models import Revision

    Revision.initialize(force=True)
Пример #8
0
def revision():
    """Sets up the revision counter for each test call."""
    from pootle.core.models import Revision
    Revision.initialize(force=True)