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

Method testSubcommand_ExitCode

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

Source from the content-addressed store, hash-verified

234 self.assertEqual(flags.hello, "world")
235
236 def testSubcommand_ExitCode(self):
237 tb = program.TensorBoard(
238 plugins=[core_plugin.CorePluginLoader],
239 assets_zip_provider=fake_asset_provider,
240 subcommands=[_TestSubcommand()],
241 )
242 _TestSubcommand.run.return_value = 77
243 tb.configure(("tb", "test"))
244 self.assertEqual(tb.main(), 77)
245
246 def testSubcommand_DoesNotInheritBaseArgs(self):
247 tb = program.TensorBoard(

Callers

nothing calls this directly

Calls 3

configureMethod · 0.95
mainMethod · 0.95
_TestSubcommandClass · 0.85

Tested by

no test coverage detected