def test_integration(self): responses.add("GET", "https://docs.getsentry.com/hosted/_platforms/go/http.json", body=GO_HTTP_JSON) sync_integration_docs("go", "http", "go/http.json") data = options.get("sentry:docs:go-http") assert data == {"id": "go-http", "html": "foo bar", "link": None, "name": "net/http"}
def test_platform(self): responses.add("GET", "https://docs.getsentry.com/hosted/_platforms/go.json", body=GO_JSON) sync_integration_docs("go", "_self", "go.json") data = options.get("sentry:docs:go") assert data == { "id": "go", "html": "foo bar", "link": "https://docs.getsentry.com/hosted/clients/go/", "name": "Go", }
def test_platform(self): responses.add('GET', 'https://docs.getsentry.com/hosted/_platforms/go.json', body=GO_JSON) sync_integration_docs('go', '_self', 'go.json') data = options.get('sentry:docs:go') assert data == { 'id': 'go', 'html': 'foo bar', 'link': 'https://docs.getsentry.com/hosted/clients/go/', 'name': 'Go', }
def test_integration(self): responses.add( 'GET', 'https://docs.getsentry.com/hosted/_platforms/go/http.json', body=GO_HTTP_JSON) sync_integration_docs('go', 'http', 'go/http.json') data = options.get('sentry:docs:go-http') assert data == { 'id': 'go-http', 'html': 'foo bar', 'link': None, 'name': 'net/http', }