Fix tests

This commit is contained in:
Ludovic Stephan 2020-08-11 17:38:57 +02:00 committed by Martin Pépin
parent ab9b4d14ef
commit 205b5c206b
No known key found for this signature in database
GPG key ID: E7520278B1774448
4 changed files with 11 additions and 11 deletions

View file

@ -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"