aboutsummaryrefslogtreecommitdiff
path: root/tests/test_cli_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cli_commands.py')
-rw-r--r--tests/test_cli_commands.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_cli_commands.py b/tests/test_cli_commands.py
index 61cc5a6..f3213c4 100644
--- a/tests/test_cli_commands.py
+++ b/tests/test_cli_commands.py
@@ -33,7 +33,13 @@ def test_performance_unknown_target(
sample_context: ExecutionContext, test_tflite_model: Path
) -> None:
"""Test that command should fail if unknown target passed."""
- with pytest.raises(Exception, match=r"File not found:*"):
+ with pytest.raises(
+ Exception,
+ match=(
+ r"Profile 'unknown' is neither a valid built-in target profile "
+ r"name or a valid file path."
+ ),
+ ):
check(
sample_context,
model=str(test_tflite_model),