Commit b344eb3b authored by VAN ZUIJLEN Nils's avatar VAN ZUIJLEN Nils
Browse files

Add regression test for #51

parent 5abc936d
......@@ -504,6 +504,14 @@ class OrderEditViewTest(OrderItemTestCase):
def test_get_unauthenticated(self) -> None:
"""Tests that unauthenticated users get redirected"""
url = reverse("boutique:order_edit")
resp = self.client.get(url)
self.assertRedirects(resp, "/accounts/login?next=/boutique/order/edit", fetch_redirect_response=False)
class DeliveryViewTest(PaymentTestCase, OrderItemTestCase):
"""Tests for views.DeliveryView"""
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