MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / _get_json

Method _get_json

tensorboard/backend/application_test.py:238–244  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

236 self.server = werkzeug_test.Client(app, wrappers.Response)
237
238 def _get_json(self, path):
239 response = self.server.get(path)
240 self.assertEqual(200, response.status_code)
241 self.assertEqual(
242 "application/json", response.headers.get("Content-Type")
243 )
244 return json.loads(response.get_data().decode("utf-8"))
245
246 def testBasicStartup(self):
247 """Start the server up and then shut it down immediately."""

Calls 1

getMethod · 0.65

Tested by

no test coverage detected