Skip to content

Commit 3e51c5c

Browse files
committed
Exercise the legacy-spelling fold in the boards filter test
1 parent 10047ca commit 3e51c5c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/controllers/test_boards.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,15 @@ async def test_get_boards_filters_by_mcu_splitting_the_rp2040_platform() -> None
276276
assert {b.id for b in rp2040.boards} == {"rpipico"}
277277

278278

279-
async def test_get_boards_folds_renamed_rp2_platform() -> None:
280-
"""A ``platform="rp2"`` filter matches the rp2040 catalog."""
279+
async def test_get_boards_folds_legacy_rp2040_platform() -> None:
280+
"""A legacy ``platform="rp2040"`` filter matches the rp2 catalog."""
281281
cat = BoardCatalog()
282282
_seed_catalog(
283283
cat,
284284
[_board(board_id="rpipico", platform=Platform.RP2, pio_board="rpipico", mcu="rp2040")],
285285
)
286286

287-
result = await cat.get_boards(platform="rp2")
287+
result = await cat.get_boards(platform="rp2040")
288288
assert {b.id for b in result.boards} == {"rpipico"}
289289

290290

0 commit comments

Comments
 (0)