Lisibilité: t_urls -> reversed_urls

This commit is contained in:
Ludovic Stephan 2020-05-10 23:58:46 +02:00
parent b1c69eddb5
commit bb72a16b64
2 changed files with 7 additions and 7 deletions

View file

@ -228,7 +228,7 @@ class RegistrationFormViewTests(ViewTestCaseMixin, TestCase):
auth_forbidden = [None, "user", "member"]
def test_empty(self):
r = self.client.get(self.t_urls[0])
r = self.client.get(self.reversed_urls[0])
self.assertIn("user_form", r.context)
self.assertIn("profile_form", r.context)
@ -241,7 +241,7 @@ class RegistrationFormViewTests(ViewTestCaseMixin, TestCase):
u.last_name = "last"
u.save()
r = self.client.get(self.t_urls[1])
r = self.client.get(self.reversed_urls[1])
self.assertIn("user_form", r.context)
self.assertIn("profile_form", r.context)
@ -253,7 +253,7 @@ class RegistrationFormViewTests(ViewTestCaseMixin, TestCase):
self.assertEqual(user_form["last_name"].initial, "last")
def test_clipper(self):
r = self.client.get(self.t_urls[2])
r = self.client.get(self.reversed_urls[2])
self.assertIn("user_form", r.context)
self.assertIn("profile_form", r.context)