summaryrefslogtreecommitdiff
path: root/grades/tests/test_views.py
diff options
context:
space:
mode:
authoradityacp2018-05-24 12:07:39 +0530
committeradityacp2018-06-07 14:50:47 +0530
commit97b657edc2a323f832c81f0e34ce5761bd21f7e9 (patch)
tree09f4367f813fab99ffa8cd540d246cfc8c8fa00a /grades/tests/test_views.py
parent78ce1804d3a82327aa0da1510bb5c03d6bbff3ba (diff)
downloadonline_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.gz
online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.bz2
online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.zip
Pep8 changes
Diffstat (limited to 'grades/tests/test_views.py')
-rw-r--r--grades/tests/test_views.py9
1 files changed, 4 insertions, 5 deletions
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)