Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pole-Web
Website
Commits
b344eb3b
Commit
b344eb3b
authored
Jan 20, 2021
by
VAN ZUIJLEN Nils
Browse files
Add regression test for
#51
parent
5abc936d
Changes
1
Hide whitespace changes
Inline
Side-by-side
boutique/tests/test_views.py
View file @
b344eb3b
...
...
@@ -504,6 +504,14 @@ class OrderEditViewTest(OrderItemTestCase):
)
self
.
assertTrue
(
context
[
"is_contributor"
])
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"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment