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
5ee314b8
Commit
5ee314b8
authored
Jan 13, 2021
by
ViolanteCodes
Browse files
updated comments on tests.py
parent
7a92f308
Changes
1
Hide whitespace changes
Inline
Side-by-side
anonticket/tests.py
View file @
5ee314b8
...
...
@@ -12,9 +12,12 @@ from anonticket.forms import (
CreateIssueForm
)
# Create your tests here.
# Note: If you run tests with --tag prefix, you can test a small suite
# of tests, (eg python manage.py test --tag url or coverage run
# manage.py --tag url.)
# of tests with one of the tags below (registered with '@tag'.)
# Examples:
# $ python manage.py test --tag url
# (or with coverage) $ coverage run manage.py --tag url.)
# ---------------------------URL TESTS----------------------------------
# URL Tests using Django SimpleTestCase (no need for database.)
...
...
@@ -106,7 +109,8 @@ class TestUrls(SimpleTestCase):
self
.
assertEqual
(
resolve
(
url
).
func
,
user_landing_view
)
# --------------------------VIEW TESTS----------------------------------
# Tests for views: status = 200, template correct.
# Tests for views: (generally for status = 200, template correct,
# although some POST views also test for redirects, etc.
# ----------------------------------------------------------------------
@
tag
(
'id_no_db'
)
...
...
@@ -528,7 +532,8 @@ class TestViewsOtherWithoutDatabase(SimpleTestCase):
self
.
assertNotIn
(
'user_found'
,
test_get_context
.
keys
())
# --------------------------FORM TESTS----------------------------------
# Tests for forms.py
# Tests for forms.py: basic tests to see that form_is_valid(). Testing
# for integration with views, etc., is done in views.py above.
# ----------------------------------------------------------------------
@
tag
(
'login'
)
...
...
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