MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / setUp

Method setUp

tests/test_discovery.py:193–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

191
192class Utilities(unittest.TestCase):
193 def setUp(self):
194 self.zoo_root_desc = json.loads(read_datafile("zoo.json", "r"))
195 self.zoo_get_method_desc = self.zoo_root_desc["methods"]["query"]
196 self.zoo_animals_resource = self.zoo_root_desc["resources"]["animals"]
197 self.zoo_insert_method_desc = self.zoo_animals_resource["methods"]["insert"]
198 self.zoo_schema = Schemas(self.zoo_root_desc)
199
200 def test_key2param(self):
201 self.assertEqual("max_results", key2param("max-results"))

Callers

nothing calls this directly

Calls 2

SchemasClass · 0.90
read_datafileFunction · 0.85

Tested by

no test coverage detected