diff options
author | adityacp | 2018-05-29 15:40:50 +0530 |
---|---|---|
committer | adityacp | 2018-05-29 15:43:38 +0530 |
commit | 5da8a3537b1ffb51145cbba0500cedda9f2b48da (patch) | |
tree | 0fa0a2f2798f5c3209f23c43b94b91a1e28e7320 /yaksh/test_views.py | |
parent | 458134e4d110be451ed7e7c5f001c2d204e1e892 (diff) | |
download | online_test-5da8a3537b1ffb51145cbba0500cedda9f2b48da.tar.gz online_test-5da8a3537b1ffb51145cbba0500cedda9f2b48da.tar.bz2 online_test-5da8a3537b1ffb51145cbba0500cedda9f2b48da.zip |
Change in models, templates, js
- Remove else condition in get_current_unit model method
- Reduce ajax timeout in course.js
- Create a new model method to set current unit
- Change views test
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 211ba19..7f72e61 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -2629,7 +2629,7 @@ class TestCourseDetail(TestCase): self.assertEqual(student.username, "demo_student") self.assertEqual(grade, "NA") self.assertEqual(percent, 0.0) - self.assertEqual(current_unit, "NA") + self.assertIsNone(current_unit) # Check student details when student starts the course self.course_status = CourseStatus.objects.create( |