diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-08 16:00:34 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-10 13:45:18 +0000 |
commit | fa1fad9332e2912f12a44a1b07716ee434174308 (patch) | |
tree | 246dfdb4ec9c495faaa55d73e061bcb4f8171d98 /tests/test_target_ethos_u_reporters.py | |
parent | 7a661257b6adad0c8f53e32b42ced56a1e7d952f (diff) | |
download | mlia-fa1fad9332e2912f12a44a1b07716ee434174308.tar.gz |
MLIA-769 Replace use of 'device' with 'target'
Term 'device' can be ambiguous and is replaced with 'target'.
Change-Id: I5e5108d033a13b98e4c2997713e1c32bce63ae62
Diffstat (limited to 'tests/test_target_ethos_u_reporters.py')
-rw-r--r-- | tests/test_target_ethos_u_reporters.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_target_ethos_u_reporters.py b/tests/test_target_ethos_u_reporters.py index 9707dff..b8014e4 100644 --- a/tests/test_target_ethos_u_reporters.py +++ b/tests/test_target_ethos_u_reporters.py @@ -12,8 +12,8 @@ from mlia.backend.vela.compat import Operator from mlia.core.reporting import Report from mlia.core.reporting import Table from mlia.target.ethos_u.config import EthosUConfiguration -from mlia.target.ethos_u.reporters import report_device_details from mlia.target.ethos_u.reporters import report_operators +from mlia.target.ethos_u.reporters import report_target_details from mlia.target.registry import profile from mlia.utils.console import remove_ascii_codes @@ -118,11 +118,11 @@ def test_report_operators( @pytest.mark.parametrize( - "device, expected_plain_text, expected_json_dict", + "target, expected_plain_text, expected_json_dict", [ [ cast(EthosUConfiguration, profile("ethos-u55-256")), - """Device information: + """Target information: Target ethos-u55 MAC 256 @@ -167,7 +167,7 @@ def test_report_operators( Feature map storage mem area Sram Fast storage mem area Sram""", { - "device": { + "target": { "target": "ethos-u55", "mac": 256, "memory_mode": { @@ -217,13 +217,13 @@ def test_report_operators( ], ], ) -def test_report_device_details( - device: EthosUConfiguration, +def test_report_target_details( + target: EthosUConfiguration, expected_plain_text: str, expected_json_dict: dict, ) -> None: """Test report_operatos formatter.""" - report = report_device_details(device) + report = report_target_details(target) assert isinstance(report, Report) plain_text = report.to_plain_text() |