diff options
author | Palaparthy Adityachandra | 2021-03-04 21:35:21 +0530 |
---|---|---|
committer | GitHub | 2021-03-04 21:35:21 +0530 |
commit | 85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca (patch) | |
tree | dc8b56154af6981894a798c6f7c209cc90b39191 /yaksh/test_views.py | |
parent | b2bf7b9fef33d59cd1e55776a51577d66a252322 (diff) | |
parent | 0697dc314471a2bde90d52b1726914c85a360470 (diff) | |
download | online_test-85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca.tar.gz online_test-85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca.tar.bz2 online_test-85a2b6b61c74e2ed42d6c78f6b502a3c72dcf9ca.zip |
Merge pull request #820 from adityacp/fix_upload_marks
Refactor upload marks for a quiz
Diffstat (limited to 'yaksh/test_views.py')
-rw-r--r-- | yaksh/test_views.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/yaksh/test_views.py b/yaksh/test_views.py index 58b7506..ccd2fbc 100644 --- a/yaksh/test_views.py +++ b/yaksh/test_views.py @@ -23,7 +23,6 @@ from django.core.files.uploadedfile import SimpleUploadedFile from django.core.files import File from django.contrib.messages import get_messages from django.contrib.contenttypes.models import ContentType -from celery.contrib.testing.worker import start_worker from django.test import SimpleTestCase @@ -41,6 +40,8 @@ from online_test.celery_settings import app from notifications_plugin.models import Notification +app.conf.update(CELERY_ALWAYS_EAGER=True) + class TestUserRegistration(TestCase): def setUp(self): @@ -4418,9 +4419,6 @@ class TestGrader(SimpleTestCase): end_time=timezone.now()+timezone.timedelta(minutes=20), ) - self.celery_worker = start_worker(app) - self.celery_worker.__enter__() - def tearDown(self): User.objects.all().delete() Course.objects.all().delete() @@ -4429,7 +4427,6 @@ class TestGrader(SimpleTestCase): QuestionPaper.objects.all().delete() AnswerPaper.objects.all().delete() self.mod_group.delete() - self.celery_worker.__exit__(None, None, None) def test_regrade_denies_anonymous(self): # Given |