def setUp(self):
     self.app = make_flask_app(None, None, None, '')
     self.app.testing = True
     self.app.config['RQ_DASHBOARD_REDIS_URL'] = 'redis://127.0.0.1'
     self.app.redis_conn = self.get_redis_client()
     push_connection(self.get_redis_client())
     self.client = self.app.test_client()
Exemple #2
0
    def setUp(self):
        if not rq_version.VERSION.startswith('1.'):
            self.skipTest('Skipping 1.x tests, because running with %s' %
                          rq_version.VERSION)

        self.app = make_flask_app(None, None, None, '')
        self.app.testing = True
        self.client = self.app.test_client()

        self.get_redis_client().flushdb()
        push_connection(self.get_redis_client())
 def setUp(self):
     self.app = make_flask_app(None, None, None, '')
     self.app.testing = True
     self.client = self.app.test_client()
     push_connection(self.get_redis_client())
Exemple #4
0
 def setUp(self):
     self.app = make_flask_app(None, None, None, '')
     self.app.testing = True
     self.client = self.app.test_client()