MCPcopy Create free account
hub / github.com/tensorflow/tfjs / testVersion

Method testVersion

tfjs-converter/python/test_pip_package.py:647–666  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

645 self.assertEqual(model_json, model_2_json)
646
647 def testVersion(self):
648 process = subprocess.Popen(
649 ['tensorflowjs_converter', '--version'],
650 stdout=subprocess.PIPE,
651 stderr=subprocess.PIPE)
652 stdout, _ = process.communicate()
653 self.assertEqual(0, process.returncode)
654 self.assertIn(
655 tf.compat.as_bytes('tensorflowjs %s' % tfjs.__version__),
656 tf.compat.as_bytes(stdout))
657
658 process = subprocess.Popen(
659 ['tensorflowjs_converter', '-v'],
660 stdout=subprocess.PIPE,
661 stderr=subprocess.PIPE)
662 stdout, _ = process.communicate()
663 self.assertEqual(0, process.returncode)
664 self.assertIn(
665 tf.compat.as_bytes('tensorflowjs %s' % tfjs.__version__),
666 tf.compat.as_bytes(stdout))
667
668
669class ConvertTfKerasSavedModelTest(tf.test.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected