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)
def test_sentry_public_dsn_with_https(self, get_public_dsn): sentry_public_dsn('https') get_public_dsn.assert_called_once_with('https')
def test_sentry_public_dsn_no_args(self, get_public_dsn): sentry_public_dsn() get_public_dsn.assert_called_once_with(None)
def test_sentry_public_dsn_with_https(self, get_public_dsn): sentry_public_dsn('https') get_public_dsn.assert_called_once_with('https')
def test_sentry_public_dsn_no_args(self, get_public_dsn): sentry_public_dsn() get_public_dsn.assert_called_once_with(None)