Updated error message for the invalid model path test case
This commit is contained in:
parent
a29035b91e
commit
c2672d040f
|
@ -146,7 +146,7 @@ class ImageClassifierTest(parameterized.TestCase):
|
||||||
with self.assertRaisesRegex(
|
with self.assertRaisesRegex(
|
||||||
ValueError,
|
ValueError,
|
||||||
r"ExternalFile must specify at least one of 'file_content', "
|
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='')
|
base_options = _BaseOptions(model_asset_path='')
|
||||||
options = _ImageClassifierOptions(base_options=base_options)
|
options = _ImageClassifierOptions(base_options=base_options)
|
||||||
_ImageClassifier.create_from_options(options)
|
_ImageClassifier.create_from_options(options)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user