Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
TPA
Anonymous Ticket Portal
Commits
997e402b
Commit
997e402b
authored
Jan 18, 2021
by
ViolanteCodes
Browse files
added a templatenotused assertion to a test
parent
6601b180
Changes
1
Hide whitespace changes
Inline
Side-by-side
anonticket/tests.py
View file @
997e402b
...
...
@@ -729,6 +729,8 @@ class TestModeratorViews(TestCase):
response
=
self
.
client
.
get
(
url
,
follow
=
False
)
self
.
assertEqual
(
response
.
status_code
,
302
)
self
.
assertEqual
(
response
.
url
,
self
.
login_redirect_url
)
self
.
assertTemplateNotUsed
(
response
,
'anonticket/moderator.html'
)
# print(response)
def
test_moderator_view_GET_no_staff
(
self
):
...
...
@@ -741,7 +743,6 @@ class TestModeratorViews(TestCase):
self
.
assertTemplateNotUsed
(
response
,
'anonticket/moderator.html'
)
# print(response)
def
test_moderator_view_GET_valid_moderator
(
self
):
"""Test that the moderator view displays correctly if
the user has moderator permissions and is staff."""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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