diff options
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 251d5ac..b40c55b 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -19,12 +19,8 @@ from mlia.target.tosa.advisor import TOSAInferenceAdvisor def test_get_advice_no_target_provided(test_keras_model: Path) -> None: """Test getting advice when no target provided.""" - with pytest.raises(Exception, match="Target profile is not provided"): - get_advice( - None, # type:ignore - test_keras_model, - {"compatibility"}, - ) + with pytest.raises(Exception, match="No valid target profile was provided."): + get_advice(None, test_keras_model, {"compatibility"}) # type: ignore def test_get_advice_wrong_category(test_keras_model: Path) -> None: |