1212#
1313# Standard library
1414# ----------------
15- from io import open
1615from textwrap import dedent
1716import json
1817from threading import Thread
@@ -101,7 +100,7 @@ def test_killer(test_assignment, test_client, test_user_1, runestone_db_tools):
101100 ("default/user/login" , False , "Login" , 1 ),
102101 ("default/user/register" , False , "Registration" , 1 ),
103102 ("default/user/logout" , True , "Logged out" , 1 ),
104- # One profile error is a result of removing the input field for the e-mail, but web2py still tries to label it, which is an error.
103+ # One validation error is a result of removing the input field for the e-mail, but web2py still tries to label it, which is an error.
105104 ("default/user/profile" , True , "Profile" , 2 ),
106105 ("default/user/change_password" , True , "Change password" , 1 ),
107106 # Runestone doesn't support this.
@@ -114,14 +113,11 @@ def test_killer(test_assignment, test_client, test_user_1, runestone_db_tools):
114113 # FIXME: This produces an exception.
115114 #'default/user/groups', True, 'Groups', 1),
116115 ("default/user/not_authorized" , False , "Not authorized" , 1 ),
117- # Returns a 404.
118- # ('default/user/navbar'=(False, 'xxx', 1),
119116 # *Other pages*
120117 #
121118 # TODO: What is this for?
122119 # ('default/call', False, 'Not found', 0),
123- # TODO: weird returned HTML. ???
124- # ('default/index', True, 'Course Selection', 1),
120+ ("default/index" , True , "Course Selection" , 1 ),
125121 ("default/about" , False , "About Us" , 1 ),
126122 ("default/error" , False , "Error: the document does not exist" , 1 ),
127123 ("default/ack" , False , "Acknowledgements" , 1 ),
@@ -132,14 +128,16 @@ def test_killer(test_assignment, test_client, test_user_1, runestone_db_tools):
132128 # Should work in both cases.
133129 ("default/reportabug" , False , "Report a Bug" , 1 ),
134130 ("default/reportabug" , True , "Report a Bug" , 1 ),
135- # TODO: weird returned HTML. ???
136131 # ('default/sendreport', True, 'Could not create issue', 1),
137132 ("default/terms" , False , "Terms and Conditions" , 1 ),
138133 ("default/privacy" , False , "Runestone Academy Privacy Policy" , 1 ),
139134 ("default/donate" , False , "Support Runestone Interactive" , 1 ),
140- # TODO: This soesn 't really test the body of either of these
135+ # TODO: This doesn 't really test much of the body of either of these.
141136 ("default/coursechooser" , True , "Course Selection" , 1 ),
137+ # If we choose an invalid course, then we go to the profile to allow the user to add that course. The second validation failure seems to be about the ``for`` attribute of the ```<label class="readonly" for="auth_user_email" id="auth_user_email__label">`` tag, since the id ``auth_user_email`` isn't defined elsewhere.
138+ ("default/coursechooser/xxx" , True , "Course IDs for open courses" , 2 ),
142139 ("default/removecourse" , True , "Course Selection" , 1 ),
140+ ("default/removecourse/xxx" , True , "Course Selection" , 1 ),
143141 ("dashboard/studentreport" , True , "Recent Activity" , 1 ,),
144142 # **Designer**
145143 # -------------
@@ -203,6 +201,9 @@ def test_validate_user_pages(
203201 # ('admin/removeassign', 'Cannot remove assignment with id of', 1),
204202 # ('admin/removeinstructor', 'xxx', 1),
205203 # ('admin/removeStudents', 'xxx', 1),
204+ ("admin/get_assignment" , "Error: assignment ID" , 1 ),
205+ ("admin/get_assignment?assignmentid=junk" , "Error: assignment ID" , 1 ),
206+ ("admin/get_assignment?assignmentid=100" , "Error: assignment ID" , 1 ),
206207 # TODO: added to the ``createAssignment`` endpoint so far.
207208 # **Dashboard**
208209 # --------------
0 commit comments