After investigations, commit the proposed patch by kklimonda presented with the
following introduction :
cm/templates/site/login_form.html template uses a relative url for the form action, which seems to break deployment in the subfolder when trailing slash is missing (the form redirects to the upper folder breaking login). Using {% url login %} (as in the attached patch) instead would fix the issue.
from django.test import TestCase
from django.test.client import Client
from django.core import management
from datetime import datetime
from cm.activity import *
from cm.models import *
from cm.security import *
class ActivityTest(TestCase):
fixtures = ['roles_generic','test_content']
def test_process_activities(self):
text = Text.objects.get(id=1)
activity = get_activity(text, user='all', reference_date=datetime(2009,02,01))
self.assertEqual(activity, [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1])