From 7a661257b6adad0c8f53e32b42ced56a1e7d952f Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Thu, 2 Feb 2023 14:02:05 +0000 Subject: MLIA-769 Expand use of target/backend registries - Use the target/backend registries to avoid hard-coded names. - Cache target profiles to avoid re-loading them Change-Id: I474b7c9ef23894e1d8a3ea06d13a37652054c62e --- tests/test_cli_commands.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/test_cli_commands.py') 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), -- cgit v1.2.1