MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / testExplicitServe

Method testExplicitServe

tensorboard/program_test.py:206–219  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 self.assertEqual(flags.path_prefix, "/x") # fixed by core_plugin
205
206 def testExplicitServe(self):
207 tb = program.TensorBoard(
208 plugins=[core_plugin.CorePluginLoader],
209 assets_zip_provider=fake_asset_provider,
210 subcommands=[_TestSubcommand()],
211 )
212 tb.configure(
213 ("tb", "serve", "--logdir", "logs", "--path_prefix", "/x///")
214 )
215 tb.main()
216 program.TensorBoard._run_serve_subcommand.assert_called_once()
217 flags = program.TensorBoard._run_serve_subcommand.call_args[0][0]
218 self.assertEqual(flags.logdir, "logs")
219 self.assertEqual(flags.path_prefix, "/x") # fixed by core_plugin
220
221 def testSubcommand(self):
222 def define_flags(parser):

Callers

nothing calls this directly

Calls 3

configureMethod · 0.95
mainMethod · 0.95
_TestSubcommandClass · 0.85

Tested by

no test coverage detected