From 5da8a3537b1ffb51145cbba0500cedda9f2b48da Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 29 May 2018 15:40:50 +0530 Subject: 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 --- yaksh/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/test_views.py') 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( -- cgit