Updated error message for the invalid model path test case

This commit is contained in:
kinaryml 2022-10-10 08:19:12 -07:00
parent a29035b91e
commit c2672d040f

View File

@ -146,7 +146,7 @@ class ImageClassifierTest(parameterized.TestCase):
with self.assertRaisesRegex(
ValueError,
r"ExternalFile must specify at least one of 'file_content', "
r"'file_name' or 'file_descriptor_meta'."):
r"'file_name', 'file_pointer_meta' or 'file_descriptor_meta'."):
base_options = _BaseOptions(model_asset_path='')
options = _ImageClassifierOptions(base_options=base_options)
_ImageClassifier.create_from_options(options)