diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-10-04 15:18:55 +0100 |
---|---|---|
committer | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2022-10-04 15:34:38 +0100 |
commit | 366ac7437383d3e9a99a971e61afbc5c466bbfcc (patch) | |
tree | 8fca425ad9f03817391bdc1ca9c6dfdc9dc44489 /tests/test_cli_commands.py | |
parent | 2d6ec94a2a085e7fa4fc23c4c7dcda3206eec98c (diff) | |
download | mlia-366ac7437383d3e9a99a971e61afbc5c466bbfcc.tar.gz |
MLIA-673 Use inclusive language in the source code and filenames
- Update configuration for inclusive language linter
- Fix reported issues
Change-Id: If0f8b6e20c17d8ee1c6179c61040fc351437f036
Diffstat (limited to 'tests/test_cli_commands.py')
-rw-r--r-- | tests/test_cli_commands.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_cli_commands.py b/tests/test_cli_commands.py index eaa08e6..fd9e29c 100644 --- a/tests/test_cli_commands.py +++ b/tests/test_cli_commands.py @@ -22,19 +22,19 @@ from mlia.devices.ethosu.performance import PerformanceMetrics from mlia.tools.metadata.common import InstallationManager -def test_operators_expected_parameters(dummy_context: ExecutionContext) -> None: +def test_operators_expected_parameters(sample_context: ExecutionContext) -> None: """Test operators command wrong parameters.""" with pytest.raises(Exception, match="Model is not provided"): - operators(dummy_context, "ethos-u55-256") + operators(sample_context, "ethos-u55-256") def test_performance_unknown_target( - dummy_context: ExecutionContext, test_tflite_model: Path + sample_context: ExecutionContext, test_tflite_model: Path ) -> None: """Test that command should fail if unknown target passed.""" with pytest.raises(Exception, match="Unable to find target profile unknown"): performance( - dummy_context, model=str(test_tflite_model), target_profile="unknown" + sample_context, model=str(test_tflite_model), target_profile="unknown" ) @@ -74,7 +74,7 @@ def test_performance_unknown_target( ], ) def test_opt_expected_parameters( - dummy_context: ExecutionContext, + sample_context: ExecutionContext, target_profile: str, monkeypatch: pytest.MonkeyPatch, optimization_type: str, @@ -87,7 +87,7 @@ def test_opt_expected_parameters( with expected_error: optimization( - ctx=dummy_context, + ctx=sample_context, target_profile=target_profile, model=str(test_keras_model), optimization_type=optimization_type, @@ -105,7 +105,7 @@ def test_opt_expected_parameters( ) def test_opt_valid_optimization_target( target_profile: str, - dummy_context: ExecutionContext, + sample_context: ExecutionContext, optimization_type: str, optimization_target: str, monkeypatch: pytest.MonkeyPatch, @@ -115,7 +115,7 @@ def test_opt_valid_optimization_target( mock_performance_estimation(monkeypatch) optimization( - ctx=dummy_context, + ctx=sample_context, target_profile=target_profile, model=str(test_keras_model), optimization_type=optimization_type, |