Commit 8a0c4287 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix test_adhesions_urls

parent ad2c87d7
......@@ -100,12 +100,9 @@ class ViewsTestCase(AdhesionsMixin, TestCase):
response = self.client.get(reverse("corporation-edit", kwargs={"pk": 1}))
self.assertEqual(response.status_code, 200)
def test_adhesions_admin(self):
def test_adhesions_urls(self):
self.client.login(username="admin", password="admin")
response = self.client.get(reverse("adhesion-list"))
self.assertEqual(response.status_code, 200)
self.assertContains(response, "user")
response = self.client.get(reverse("adhesion-detail", kwargs={"pk": 1}))
response = self.client.get(reverse("corporation-detail", kwargs={"pk": 1}))
self.assertEqual(response.status_code, 200)
def test_adhesion_model(self):
......
Supports Markdown
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