Updated the 'test_create_from_options_fails_with_invalid_model_path' test case
This commit is contained in:
parent
647b94240d
commit
77cc4c53ab
|
@ -135,10 +135,9 @@ class HandLandmarkerTest(parameterized.TestCase):
|
||||||
def test_create_from_options_fails_with_invalid_model_path(self):
|
def test_create_from_options_fails_with_invalid_model_path(self):
|
||||||
# Invalid empty model path.
|
# Invalid empty model path.
|
||||||
with self.assertRaisesRegex(
|
with self.assertRaisesRegex(
|
||||||
ValueError,
|
RuntimeError, 'Unable to open file at /path/to/invalid/model.tflite'):
|
||||||
r"ExternalFile must specify at least one of 'file_content', "
|
base_options = _BaseOptions(
|
||||||
r"'file_name', 'file_pointer_meta' or 'file_descriptor_meta'."):
|
model_asset_path='/path/to/invalid/model.tflite')
|
||||||
base_options = _BaseOptions(model_asset_path='')
|
|
||||||
options = _HandLandmarkerOptions(base_options=base_options)
|
options = _HandLandmarkerOptions(base_options=base_options)
|
||||||
_HandLandmarker.create_from_options(options)
|
_HandLandmarker.create_from_options(options)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user