Ejemplo n.º 1
0
    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"}
Ejemplo n.º 2
0
    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",
        }
Ejemplo n.º 3
0
    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',
        }
Ejemplo n.º 4
0
    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',
        }