Esempio n. 1
0
 def list(self, request, format=None):
     status = {
         "site": settings.SITE_TITLE,
         "version": settings.VERSION,
         "language": settings.LANGUAGE_CODE,
         "analytics": settings.GA_ID,
         "raven": sentry_public_dsn(scheme="https"),
         "captcha": settings.PROTECTION["captcha"],
         "endpoints": {
             "static": settings.STATIC_URL,
             # TODO: reader a.k.a. /r endpoint
         },
     }
     return Response(status)
Esempio n. 2
0
 def test_sentry_public_dsn_with_https(self, get_public_dsn):
     sentry_public_dsn('https')
     get_public_dsn.assert_called_once_with('https')
Esempio n. 3
0
 def test_sentry_public_dsn_no_args(self, get_public_dsn):
     sentry_public_dsn()
     get_public_dsn.assert_called_once_with(None)
Esempio n. 4
0
 def test_sentry_public_dsn_with_https(self, get_public_dsn):
     sentry_public_dsn('https')
     get_public_dsn.assert_called_once_with('https')
Esempio n. 5
0
 def test_sentry_public_dsn_no_args(self, get_public_dsn):
     sentry_public_dsn()
     get_public_dsn.assert_called_once_with(None)