Fix tests
This commit is contained in:
parent
ab9b4d14ef
commit
205b5c206b
4 changed files with 11 additions and 11 deletions
|
@ -21,7 +21,7 @@ app_dict = {
|
|||
"gestioncof": "",
|
||||
"bda": "bda/",
|
||||
"petitscours": "petitcours/",
|
||||
"kfet": "k-fet",
|
||||
"kfet": "k-fet/",
|
||||
# events module is still experimental !
|
||||
"events": "event_v2/",
|
||||
"authens": "authens/",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<h2>Liens utiles du COF</h2>
|
||||
<h3>COF</h3>
|
||||
<ul>
|
||||
<li><a href="{% url 'export.membres' %}">Export des membres du COF</a></li>
|
||||
<li><a href="{% url 'export.members' %}">Export des membres du COF</a></li>
|
||||
<li><a href="{% url 'ml_diffcof' %}">Diffusion COF</a></li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ User = get_user_model()
|
|||
|
||||
class RegistrationViewTests(ViewTestCaseMixin, TestCase):
|
||||
url_name = "registration"
|
||||
url_expected = "/registration"
|
||||
url_expected = "/registration/"
|
||||
|
||||
http_methods = ["GET", "POST"]
|
||||
|
||||
|
@ -269,7 +269,7 @@ class RegistrationFormViewTests(ViewTestCaseMixin, TestCase):
|
|||
@override_settings(LDAP_SERVER_URL="ldap_url")
|
||||
class RegistrationAutocompleteViewTests(MockLDAPMixin, ViewTestCaseMixin, TestCase):
|
||||
url_name = "cof.registration.autocomplete"
|
||||
url_expected = "/autocomplete/registration"
|
||||
url_expected = "/registration/autocomplete"
|
||||
|
||||
auth_user = "staff"
|
||||
auth_forbidden = [None, "user", "member"]
|
||||
|
@ -480,7 +480,7 @@ class UserAutocompleteViewTests(ViewTestCaseMixin, TestCase):
|
|||
|
||||
|
||||
class ExportMembersViewTests(CSVResponseMixin, ViewTestCaseMixin, TestCase):
|
||||
url_name = "cof.membres_export"
|
||||
url_name = "export.members"
|
||||
url_expected = "/export/members"
|
||||
|
||||
auth_user = "staff"
|
||||
|
@ -520,8 +520,8 @@ class ExportMembersViewTests(CSVResponseMixin, ViewTestCaseMixin, TestCase):
|
|||
|
||||
|
||||
class ExportMegaViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase):
|
||||
url_name = "cof.mega_export"
|
||||
url_expected = "/export/mega"
|
||||
url_name = "export.mega.all"
|
||||
url_expected = "/export/mega/all"
|
||||
|
||||
auth_user = "staff"
|
||||
auth_forbidden = [None, "user", "member"]
|
||||
|
@ -549,7 +549,7 @@ class ExportMegaViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase):
|
|||
|
||||
|
||||
class ExportMegaOrgasViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase):
|
||||
url_name = "cof.mega_export_orgas"
|
||||
url_name = "export.mega.orgas"
|
||||
url_expected = "/export/mega/orgas"
|
||||
|
||||
auth_user = "staff"
|
||||
|
@ -578,7 +578,7 @@ class ExportMegaOrgasViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase):
|
|||
|
||||
|
||||
class ExportMegaParticipantsViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase):
|
||||
url_name = "cof.mega_export_participants"
|
||||
url_name = "export.mega.participants"
|
||||
url_expected = "/export/mega/participants"
|
||||
|
||||
auth_user = "staff"
|
||||
|
@ -595,7 +595,7 @@ class ExportMegaParticipantsViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCa
|
|||
|
||||
|
||||
class ExportMegaRemarksViewTests(MegaHelperMixin, ViewTestCaseMixin, TestCase):
|
||||
url_name = "cof.mega_export_remarks"
|
||||
url_name = "export.mega.remarks"
|
||||
url_expected = "/export/mega/avecremarques"
|
||||
|
||||
auth_user = "staff"
|
||||
|
|
|
@ -6,7 +6,7 @@ from django_cas_ng import views as django_cas_views
|
|||
from gestioncof import csv_views, views
|
||||
|
||||
export_patterns = [
|
||||
path("members", views.export_members, name="export.membres"),
|
||||
path("members", views.export_members, name="export.members"),
|
||||
path(
|
||||
"mega/avecremarques", views.export_mega_remarksonly, name="export.mega.remarks",
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue