graphql-engine/server/tests-py/test_compat.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
577 B
Python
Raw Normal View History

import pytest
def v1qCompat(hge_ctx, q):
h = {'X-Hasura-Access-Key': hge_ctx.hge_key}
resp = hge_ctx.http.post(
hge_ctx.hge_url + "/v1/query",
json=q,
headers=h
)
return resp.status_code, resp.json()
@pytest.mark.admin_secret
class TestGraphQLCompatAccessKey():
export_metadata = {
"type" : "export_metadata",
"args" : {}
}
def test_compact_access_key_export_metadata(self, hge_ctx):
code, resp = v1qCompat(hge_ctx, self.export_metadata)
assert code == 200, resp