示例#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)
示例#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')
示例#3
0
 def test_sentry_public_dsn_no_args(self, get_public_dsn):
     sentry_public_dsn()
     get_public_dsn.assert_called_once_with(None)
示例#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')
示例#5
0
 def test_sentry_public_dsn_no_args(self, get_public_dsn):
     sentry_public_dsn()
     get_public_dsn.assert_called_once_with(None)