def setUp(self):
        super(ArchiverTestCase, self).setUp()

        handlers.celery_before_request()
        self.user = factories.UserFactory()
        self.auth = Auth(user=self.user)
        self.src = factories.NodeFactory(creator=self.user)
        self.dst = factories.RegistrationFactory(user=self.user, project=self.src, send_signals=False)
        archiver_utils.before_archive(self.dst, self.user)
        self.archive_job = self.dst.archive_job
Exemple #2
0
    def setUp(self):
        super(ArchiverTestCase, self).setUp()

        handlers.celery_before_request()
        self.user = factories.UserFactory()
        self.auth = Auth(user=self.user)
        self.src = factories.NodeFactory(creator=self.user)
        self.dst = factories.RegistrationFactory(user=self.user, project=self.src, send_signals=False)
        archiver_utils.before_archive(self.dst, self.user)
        self.archive_job = self.dst.archive_job
Exemple #3
0
 def setUp(self):
     super(AppTestCase, self).setUp()
     self.app = TestApp(test_app)
     self.context = test_app.test_request_context()
     self.context.push()
     with self.context:
         celery_before_request()
     for signal in self.DISCONNECTED_SIGNALS:
         for receiver in self.DISCONNECTED_SIGNALS[signal]:
             signal.disconnect(receiver)
Exemple #4
0
 def setUp(self):
     super(AppTestCase, self).setUp()
     self.app = TestApp(test_app)
     self.context = test_app.test_request_context()
     self.context.push()
     with self.context:
         celery_before_request()
     for signal in self.DISCONNECTED_SIGNALS:
         for receiver in self.DISCONNECTED_SIGNALS[signal]:
             signal.disconnect(receiver)
Exemple #5
0
 def setUp(self):
     super(TestUserMerging, self).setUp()
     self.user = factories.UserFactory()
     with self.context:
         handlers.celery_before_request()
Exemple #6
0
 def setUp(self, *args, **kwargs):
     super(TestMailChimpHelpers, self).setUp(*args, **kwargs)
     with self.context:
         handlers.celery_before_request()
Exemple #7
0
 def setUp(self):
     super(TestUserMerging, self).setUp()
     self.user = factories.UserFactory()
     with self.context:
         handlers.celery_before_request()
Exemple #8
0
 def process_request(self, request):
     api_globals.request = request
     celery_before_request()
Exemple #9
0
 def process_request(self, request):
     api_globals.request = request
     celery_before_request()
Exemple #10
0
 def process_request(self, request):
     celery_before_request()
Exemple #11
0
 def setUp(self, *args, **kwargs):
     super(TestMailChimpHelpers, self).setUp(*args, **kwargs)
     with self.context:
         handlers.celery_before_request()