MCPcopy
hub / github.com/hasura/graphql-engine / v1graphql_f

Method v1graphql_f

server/tests-py/context.py:1010–1014  ·  view source on GitHub ↗
(self, filepath, headers = {}, expected_status_code = 200)

Source from the content-addressed store, hash-verified

1008 return self.execute_query(q, "/v1/graphql", headers, expected_status_code)
1009
1010 def v1graphql_f(self, filepath, headers = {}, expected_status_code = 200):
1011 with open(filepath) as f:
1012 # NOTE: preserve ordering with ruamel
1013 yml = yaml.YAML()
1014 return self.v1graphqlq(yml.load(f), headers, expected_status_code)
1015
1016 def teardown(self):
1017 self.http.close()

Calls 3

v1graphqlqMethod · 0.95
YAMLMethod · 0.80
openFunction · 0.50