@@ -502,37 +502,13 @@ def test_board_details(run_command):
502
502
assert result ["debugging_supported" ] is True
503
503
504
504
505
- # old `arduino-cli board details` did not need -b <fqbn> flag to work
506
- def test_board_details_old (run_command ):
507
- run_command (["core" , "update-index" ])
508
- # Download samd core pinned to 1.8.6
509
- run_command ([
"core" ,
"install" ,
"arduino:[email protected] " ])
510
- result = run_command (["board" , "details" , "arduino:samd:nano_33_iot" , "--format" , "json" ])
511
- assert result .ok
512
- # Sort everything before compare
513
- result = json .loads (result .stdout )
514
- gold_board_details = json .loads (gold_board )
515
-
516
- assert result ["fqbn" ] == gold_board_details ["fqbn" ]
517
- assert result ["name" ] == gold_board_details ["name" ]
518
- assert result ["version" ] == gold_board_details ["version" ]
519
- assert result ["properties_id" ] == gold_board_details ["properties_id" ]
520
- assert result ["official" ] == gold_board_details ["official" ]
521
- assert result ["package" ] == gold_board_details ["package" ]
522
- assert result ["platform" ] == gold_board_details ["platform" ]
523
- for usb_id in gold_board_details ["identification_properties" ]:
524
- assert usb_id in result ["identification_properties" ]
525
- for programmer in gold_board_details ["programmers" ]:
526
- assert programmer in result ["programmers" ]
527
-
528
-
529
505
def test_board_details_no_flags (run_command ):
530
506
run_command (["core" , "update-index" ])
531
507
# Download samd core pinned to 1.8.6
532
508
run_command ([
"core" ,
"install" ,
"arduino:[email protected] " ])
533
509
result = run_command (["board" , "details" ])
534
510
assert not result .ok
535
- assert " Error getting board details: Invalid FQBN:" in result .stderr
511
+ assert ' Error: required flag(s) "fqbn" not set' in result .stderr
536
512
assert result .stdout == ""
537
513
538
514
0 commit comments