Make url/url_code methods safe
This commit is contained in:
parent
5dc29dd907
commit
eb200de278
6 changed files with 52 additions and 53 deletions
|
|
@ -8,7 +8,7 @@ from django.core import mail
|
|||
|
||||
from django.test import TestCase, Client
|
||||
from django.urls import reverse
|
||||
# Create your tests here.
|
||||
|
||||
from cms.models import Domaine, Processus, Module
|
||||
|
||||
|
||||
|
|
@ -17,11 +17,9 @@ class PdfTestCase(TestCase):
|
|||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
|
||||
User.objects.create_superuser('me', 'me@example.org', 'mepassword')
|
||||
|
||||
def setUp(self):
|
||||
self.client = Client()
|
||||
self.client.login(username='me', password='mepassword')
|
||||
|
||||
def test_index(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue