diff options
author | adityacp | 2018-05-24 12:07:39 +0530 |
---|---|---|
committer | adityacp | 2018-06-07 14:50:47 +0530 |
commit | 97b657edc2a323f832c81f0e34ce5761bd21f7e9 (patch) | |
tree | 09f4367f813fab99ffa8cd540d246cfc8c8fa00a /grades/tests | |
parent | 78ce1804d3a82327aa0da1510bb5c03d6bbff3ba (diff) | |
download | online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.gz online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.bz2 online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.zip |
Pep8 changes
Diffstat (limited to 'grades/tests')
-rw-r--r-- | grades/tests/test_models.py | 2 | ||||
-rw-r--r-- | grades/tests/test_views.py | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/grades/tests/test_models.py b/grades/tests/test_models.py index f8d5c5c..a508eb3 100644 --- a/grades/tests/test_models.py +++ b/grades/tests/test_models.py @@ -1,5 +1,5 @@ from django.test import TestCase -from grades.models import GradingSystem, GradeRange +from grades.models import GradingSystem class GradingSystemTestCase(TestCase): diff --git a/grades/tests/test_views.py b/grades/tests/test_views.py index c944f03..6b76565 100644 --- a/grades/tests/test_views.py +++ b/grades/tests/test_views.py @@ -5,8 +5,7 @@ from grades.models import GradingSystem def setUpModule(): - user = User.objects.create_user(username='grades_user', - password='grades_user') + User.objects.create_user(username='grades_user', password='grades_user') def tearDownModule(): @@ -73,7 +72,7 @@ class AddGradingSystemTest(TestCase): 'graderange_set-MAX_NUM_FORMS': ['1000'], 'add': ['Add'], 'graderange_set-INITIAL_FORMS': ['0']} # When - response = self.client.post(reverse('grades:add_grade'), data) + self.client.post(reverse('grades:add_grade'), data) # Then grading_systems = GradingSystem.objects.filter(name='new_sys') self.assertEqual(len(grading_systems), 1) @@ -98,8 +97,8 @@ class AddGradingSystemTest(TestCase): 'graderange_set-0-grade': ['F'], 'graderange_set-INITIAL_FORMS': ['0'], 'save': ['Save']} # When - response = self.client.post(reverse('grades:edit_grade', - kwargs={'system_id': 2}), data) + self.client.post(reverse('grades:edit_grade', + kwargs={'system_id': 2}), data) # Then ranges = grading_system.graderange_set.all() self.assertEqual(len(ranges), 1) |