Beispiel #1
0
    def setUp(self):
        # XXX: might be a better way to do do this
        app.config['DATASTORE'] = {
            'ENGINE': 'sentry.db.backends.redis.RedisBackend',
            'OPTIONS': {
                'db': 9
            }
        }
        app.config['CLIENT'] = 'sentry.client.base.SentryClient'
        app.db = get_backend(app)

        # Flush the Redis instance
        app.db.conn.flushdb()

        self.client = app.test_client()
Beispiel #2
0
 def setUp(self):
     # XXX: might be a better way to do do this
     app.config['DATASTORE'] = {
         'ENGINE': 'sentry.db.backends.redis.RedisBackend',
         'OPTIONS': {
             'db': 9
         }
     }
     app.config['CLIENT'] = 'sentry.client.base.SentryClient'
     app.db = get_backend(app)
     
     # Flush the Redis instance
     app.db.conn.flushdb()
     
     self.client = app.test_client()
Beispiel #3
0
 def send_remote(self, url, data, headers=None):
     if headers is None:
         headers = {}
     client = app.test_client()
     return client.post(url, data=data, headers=headers)