Skip to content

Commit 28e3447

Browse files
amilcarlucasCopilot
andcommitted
Update tests/test_data_model_vehicle_components_base.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Amilcar Lucas <amilcar.lucas@iav.de>
1 parent d8ac118 commit 28e3447

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_data_model_vehicle_components_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,9 @@ def test_user_sees_notes_field_always_last_in_component(self, model_instance) ->
15561556
assert fields[-1] == "Notes", "Notes should be the last field in the component"
15571557
assert result["Telemetry"]["Notes"] == "SiK radio on Telem1"
15581558
# Other fields are preserved in their original relative order
1559-
assert fields.index("Product") < fields.index("FC Connection")
1559+
original_non_notes_fields = [key for key in existing_components["Telemetry"] if key != "Notes"]
1560+
reordered_non_notes_fields = [key for key in fields if key != "Notes"]
1561+
assert reordered_non_notes_fields == original_non_notes_fields
15601562

15611563
def test_user_sees_notes_field_last_when_already_at_end(self, model_instance) -> None:
15621564
"""

0 commit comments

Comments
 (0)