Commit 52481b9c authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

rm test_corp_creation test_corp_updateq

parent 8a0c4287
......@@ -141,25 +141,6 @@ class ViewsTestCase(AdhesionsMixin, TestCase):
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_corp_creation(self):
url = reverse("corporation-add")
self.client.login(username="user", password="user")
response = self.client.get(url)
self.assertRedirects(response, reverse("login") + "?next=" + url)
self.client.login(username="admin", password="admin")
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
def test_corp_update(self):
corp = Corporation.objects.get(social_reason="EvilCorp")
url = reverse("corporation-edit", kwargs={"pk": corp.pk})
self.client.login(username="user", password="user")
response = self.client.get(url)
self.assertRedirects(response, reverse("login") + "?next=" + url)
self.client.login(username="admin", password="admin")
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
class CommandsTestCase(AdhesionsMixin, TestCase):
def test_list(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