Commit dbf4e75c authored by Florent Chehab's avatar Florent Chehab

Versionning Test Corrected

parent fbe13e6e
......@@ -6,8 +6,6 @@ new_revision_saved = django.dispatch.Signal(providing_args=["obj"])
def squashRevisionByUser(sender, obj, **kwargs):
"""
TODO add comment and unit test
It should also work with moderation as obj will be a versionned object
"""
versions = Version.objects\
......
......@@ -3,6 +3,7 @@ from backend.models.my_model import ForTestingVersionning
from django.conf import settings
from reversion.models import Version
from backend.signals import new_revision_saved
from django.test import override_settings
class VersionningTestCase(WithUserTestCase):
......@@ -38,7 +39,7 @@ class VersionningTestCase(WithUserTestCase):
return matching[0]
####
@override_settings(MODERATION_ACTIVATED=False)
def test_versionning(self):
"""
Test to check that versionning is working
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment