Skip to content

Commit

Permalink
Corrige un TU
Browse files Browse the repository at this point in the history
  • Loading branch information
Eskimon committed May 15, 2015
1 parent c66f7d6 commit ea18c47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions zds/member/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ def test_filter_member_ip(self):
# Check that the filter can't be access from normal user
result = self.client.post(
reverse('zds.member.views.member_from_ip',
kwargs={'ip': tester.last_ip_address}),
kwargs={'ipadress': tester.last_ip_address}),
{}, follow=False)
self.assertEqual(result.status_code, 403)

Expand All @@ -777,7 +777,7 @@ def test_filter_member_ip(self):
# test that we retrieve correctly the 2 members (staff + user) from this ip
result = self.client.post(
reverse('zds.member.views.member_from_ip',
kwargs={'ip': staff.last_ip_address}),
kwargs={'ipadress': staff.last_ip_address}),
{}, follow=False)
self.assertEqual(result.status_code, 200)
self.assertEqual(len(result.context['members']), 2)
Expand Down
2 changes: 1 addition & 1 deletion zds/member/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
url(r'^profil/karmatiser/$', 'zds.member.views.modify_karma'),
url(r'^profil/modifier/(?P<user_pk>\d+)/$', 'zds.member.views.modify_profile'),
url(r'^parametres/mini_profil/(?P<user_name>.+)/$', 'zds.member.views.settings_mini_profile'),
url(r'^profil/multi/(?P<ip>.+)/$', 'zds.member.views.member_from_ip'),
url(r'^profil/multi/(?P<ipadress>.+)/$', 'zds.member.views.member_from_ip'),

#tutorials and articles
url(r'^tutoriels/$', 'zds.member.views.tutorials'),
Expand Down

0 comments on commit ea18c47

Please sign in to comment.