@@ -502,37 +502,13 @@ def test_board_details(run_command):
502502 assert result ["debugging_supported" ] is True
503503
504504
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:samd@1.8.6" ])
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-
529505def test_board_details_no_flags (run_command ):
530506 run_command (["core" , "update-index" ])
531507 # Download samd core pinned to 1.8.6
532508 run_command (["core" , "install" , "arduino:samd@1.8.6" ])
533509 result = run_command (["board" , "details" ])
534510 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
536512 assert result .stdout == ""
537513
538514
0 commit comments