Commit a5e271f1 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

updated toc instructions on tests.py

parent eea33417
...@@ -46,6 +46,8 @@ from django.core.cache import cache ...@@ -46,6 +46,8 @@ from django.core.cache import cache
# ----------------------TABLE OF CONTENTS:---------------------------- # ----------------------TABLE OF CONTENTS:----------------------------
#--------------------------------------------------------------------- #---------------------------------------------------------------------
# (Names in "" refer to views.py) # (Names in "" refer to views.py)
# Quickly drop down to a test battery with CTRL+F, then the number,
# e.g. To find "Custom Test Functions": CTRL + F, "1.0"
# #
# 1.0: Custom Test Functions # 1.0: Custom Test Functions
# 2.0: Discrete Function Unit Tests ("Shared Functions, Non-Gitlab") # 2.0: Discrete Function Unit Tests ("Shared Functions, Non-Gitlab")
...@@ -1359,7 +1361,7 @@ class TestViewsOtherWithoutDatabase(SimpleTestCase): ...@@ -1359,7 +1361,7 @@ class TestViewsOtherWithoutDatabase(SimpleTestCase):
self.assertIn(word, test_get_context['user_identifier_string']) self.assertIn(word, test_get_context['user_identifier_string'])
self.assertNotIn('user_found', test_get_context.keys()) self.assertNotIn('user_found', test_get_context.keys())
# --------------------------FORM TESTS---------------------------------- # ------------------------5.0--FORM TESTS--------------------------------
# Tests for forms.py: basic tests to see that form_is_valid(). Testing # Tests for forms.py: basic tests to see that form_is_valid(). Testing
# for integration with views, etc., is done in views.py above. # for integration with views, etc., is done in views.py above.
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -1511,7 +1513,7 @@ class TestCreateIssueForm(TestCase): ...@@ -1511,7 +1513,7 @@ class TestCreateIssueForm(TestCase):
self.assertFalse(form.is_valid()) self.assertFalse(form.is_valid())
self.assertEquals(len(form.errors), 3) self.assertEquals(len(form.errors), 3)
# ---------------------MODERATOR PORTAL TESTS--------------------------- # -----------------6.0----MODERATOR PORTAL TESTS------------------------
# Tests for views, etc. associated with the moderator panel. # Tests for views, etc. associated with the moderator panel.
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
...@@ -1802,7 +1804,7 @@ class TestModeratorViews(TestCase): ...@@ -1802,7 +1804,7 @@ class TestModeratorViews(TestCase):
self.assertEqual( self.assertEqual(
updated_issue.description, "An updated issue description") updated_issue.description, "An updated issue description")
# --------------------------OTHER TESTS--------------------------------- # ---------------------7.0-----OTHER TESTS------------------------------
# Tests for filters, custom template tags, etc. # Tests for filters, custom template tags, etc.
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
......
Markdown is supported
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