Fix a reverse url resolution on the BDS home page
This commit is contained in:
parent
7081380058
commit
7c35357060
2 changed files with 11 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
<br>
|
||||
<br>
|
||||
|
||||
<a class=button href="{% url 'export.members' %}">Télécharger la liste des membres (CSV)</a>
|
||||
<a class=button href="{% url 'bds:export.members' %}">Télécharger la liste des membres (CSV)</a>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
|
|
@ -22,6 +22,16 @@ def login_url(next=None):
|
|||
return "{}?next={}".format(login_url, next)
|
||||
|
||||
|
||||
class TestHomeView(TestCase):
|
||||
@mock.patch("gestioncof.signals.messages")
|
||||
def test_get(self, mock_messages):
|
||||
user = User.objects.create_user(username="random_user")
|
||||
give_bds_buro_permissions(user)
|
||||
self.client.force_login(user)
|
||||
resp = self.client.get(reverse("bds:home"))
|
||||
self.assertEquals(resp.status_code, 200)
|
||||
|
||||
|
||||
class TestRegistrationView(TestCase):
|
||||
@mock.patch("gestioncof.signals.messages")
|
||||
def test_get_autocomplete(self, mock_messages):
|
||||
|
|
Loading…
Reference in a new issue