Fix broken login tests

Summary: The error was a small mismatch in the quotes

Test Plan: `./manage.py test`

Reviewers: terrienale

Reviewed By: terrienale

Subscribers: jordankevi, jamesrapha

Maniphest Tasks: T56

Differential Revision: https://phabricator.atilla.org/D26
parent 8c57c6fb
......@@ -16,14 +16,14 @@ class HomePageTest(CustomUnitTestCase):
response = self.client.get('/')
self.assertContains(
response,
"href='%s'>Déconnexion" % reverse('logout')
'href="%s">Déconnexion' % reverse('accounts:logout')
)
def test_home_page_displays_login_link_when_not_logged_in(self):
response = self.client.get('/')
self.assertContains(
response,
"href='%s'>Se connecter" % reverse('login')
'href="%s">Se connecter' % reverse('accounts:login')
)
def test_home_page_displays_username_when_logged_in(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment