/cof/ → /gestioCOF/ && /gestioncof/ → /cof/
This commit is contained in:
parent
f297a1a0cf
commit
c297c7b545
190 changed files with 338 additions and 338 deletions
|
@ -5,7 +5,7 @@ from django.utils import timezone
|
|||
|
||||
import djconfig
|
||||
|
||||
from gestioncof.models import User
|
||||
from cof.models import User
|
||||
from kfet.config import kfet_config
|
||||
from kfet.models import Account
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from kfet.models import Account, Article, ArticleCategory
|
|||
|
||||
class TestStats(TestCase):
|
||||
|
||||
@patch('gestioncof.signals.messages')
|
||||
@patch('cof.signals.messages')
|
||||
def test_user_stats(self, mock_messages):
|
||||
"""
|
||||
Checks that we can get the stat-related pages without any problem.
|
||||
|
|
|
@ -3,7 +3,7 @@ from django.contrib.auth.models import Permission
|
|||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.test import TestCase
|
||||
|
||||
from gestioncof.models import CofProfile
|
||||
from cof.models import CofProfile
|
||||
|
||||
from ..models import Account
|
||||
from .testcases import TestCaseMixin
|
||||
|
@ -76,17 +76,17 @@ class PermHelpersTest(TestCaseMixin, TestCase):
|
|||
)
|
||||
|
||||
def test_get_perms(self):
|
||||
perms = get_perms('kfet.test_perm', 'gestioncof.another_test_perm')
|
||||
perms = get_perms('kfet.test_perm', 'cof.another_test_perm')
|
||||
self.assertDictEqual(perms, {
|
||||
'kfet.test_perm': self.perm1,
|
||||
'gestioncof.another_test_perm': self.perm2,
|
||||
'cof.another_test_perm': self.perm2,
|
||||
})
|
||||
|
||||
def test_user_add_perms(self):
|
||||
user = User.objects.create_user(username='user', password='user')
|
||||
user.user_permissions.add(self.perm1)
|
||||
|
||||
user_add_perms(user, ['kfet.is_team', 'gestioncof.another_test_perm'])
|
||||
user_add_perms(user, ['kfet.is_team', 'cof.another_test_perm'])
|
||||
|
||||
self.assertQuerysetEqual(
|
||||
user.user_permissions.all(),
|
||||
|
|
|
@ -228,7 +228,7 @@ class ViewTestCaseMixin(TestCaseMixin):
|
|||
# Signals handlers on login/logout send messages.
|
||||
# Due to the way the Django' test Client performs login, this raise an
|
||||
# error. As workaround, we mock the Django' messages module.
|
||||
patcher_messages = mock.patch('gestioncof.signals.messages')
|
||||
patcher_messages = mock.patch('cof.signals.messages')
|
||||
patcher_messages.start()
|
||||
self.addCleanup(patcher_messages.stop)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue