summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/evaluator_tests/test_python_evaluation.py1
-rw-r--r--yaksh/live_server_tests/selenium_test.py1
-rw-r--r--yaksh/models.py1
-rw-r--r--yaksh/test_views.py6
4 files changed, 7 insertions, 2 deletions
diff --git a/yaksh/evaluator_tests/test_python_evaluation.py b/yaksh/evaluator_tests/test_python_evaluation.py
index 1933d17..ad9b2c2 100644
--- a/yaksh/evaluator_tests/test_python_evaluation.py
+++ b/yaksh/evaluator_tests/test_python_evaluation.py
@@ -173,7 +173,6 @@ class PythonAssertionEvaluationTestCases(EvaluatorBaseTest):
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
err = result.get("error")[0]['traceback']
-
# Then
self.assertFalse(result.get("success"))
for msg in syntax_error_msg:
diff --git a/yaksh/live_server_tests/selenium_test.py b/yaksh/live_server_tests/selenium_test.py
index a067f22..229902c 100644
--- a/yaksh/live_server_tests/selenium_test.py
+++ b/yaksh/live_server_tests/selenium_test.py
@@ -172,6 +172,7 @@ def wrap_run_load_test(args):
selenium_test = SeleniumTest(url=url, quiz_name=quiz_name)
return selenium_test.run_load_test(*args)
+
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(
diff --git a/yaksh/models.py b/yaksh/models.py
index f7adfd8..60b09c5 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -135,6 +135,7 @@ def get_file_dir(instance, filename):
upload_dir = instance.name.replace(" ", "_")
return os.sep.join((upload_dir, filename))
+
def create_group(group_name, app_label):
try:
group = Group.objects.get(name=group_name)
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index b71bb3e..3520c61 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -1345,6 +1345,7 @@ class TestAddQuiz(TestCase):
self.assertEqual(response.context['quizzes'][0], self.quiz)
self.assertTemplateUsed(response, "yaksh/courses.html")
+
class TestAddAsModerator(TestCase):
def setUp(self):
self.client = Client()
@@ -1399,6 +1400,7 @@ class TestAddAsModerator(TestCase):
with self.assertRaises(Http404):
add_as_moderator(self.user, 'moderator')
+
class TestToggleModerator(TestCase):
def setUp(self):
self.client = Client()
@@ -1481,6 +1483,7 @@ class TestToggleModerator(TestCase):
self.assertEqual(response.status_code, 404)
+
class TestAddTeacher(TestCase):
def setUp(self):
self.client = Client()
@@ -2850,7 +2853,8 @@ class TestCourseDetail(TestCase):
target_status_code=301)
def test_send_mail_to_course_students(self):
- """ Check if bulk mail is sent to multiple students enrolled in a course
+ """ Check if bulk mail is sent to multiple students enrolled
+ in a course
"""
self.client.login(
username=self.user1.username,