Beispiel #1
0
 def attach_database(cls):
     attach_database(celery, cls.db_master)
Beispiel #2
0
 def setup_celery(cls):
     attach_database(celery, _db_master=cls.db_master)
     configure_s3_backup(celery, settings={
         's3_backup_bucket': 'localhost.bucket',
         's3_backup_prefix': 'backups/tests',
     })
Beispiel #3
0
 def test_attach(self):
     attach_database(celery, _db_master=self.db_master)
     self.assertTrue(hasattr(celery, 'db_master'))
Beispiel #4
0
 def test_attach(self):
     attach_database(celery, _db_master=self.db_master)
     self.assertTrue(hasattr(celery, 'db_master'))