@@ -1563,14 +1563,18 @@ def test_get_sketches_report(monkeypatch, mocker):
15631563 compile_sketches = get_compilesketches_object (fqbn_arg = fqbn_arg )
15641564
15651565 assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1566- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
15671566 compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
15681567 compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
15691568 + github_repository
15701569 + "/commit/"
15711570 + current_git_ref ),
1572- compilesketches .CompileSketches .ReportKeys .sizes : sizes_summary_report ,
1573- compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1571+ compilesketches .CompileSketches .ReportKeys .boards : [
1572+ {
1573+ compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1574+ compilesketches .CompileSketches .ReportKeys .sizes : sizes_summary_report ,
1575+ compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1576+ }
1577+ ]
15741578 }
15751579
15761580 compile_sketches .get_sizes_summary_report .assert_called_once_with (compile_sketches ,
@@ -1580,13 +1584,17 @@ def test_get_sketches_report(monkeypatch, mocker):
15801584 compilesketches .CompileSketches .get_sizes_summary_report .return_value = []
15811585
15821586 assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1583- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
15841587 compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
15851588 compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
15861589 + github_repository
15871590 + "/commit/"
15881591 + current_git_ref ),
1589- compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1592+ compilesketches .CompileSketches .ReportKeys .boards : [
1593+ {
1594+ compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1595+ compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1596+ }
1597+ ]
15901598 }
15911599
15921600
@@ -1820,7 +1828,7 @@ def test_get_sizes_summary_report():
18201828
18211829def test_create_sketches_report_file (monkeypatch , tmp_path ):
18221830 sketches_report_path = tmp_path
1823- sketches_report = {
1831+ sketches_report = [ {
18241832 "sketch" : "examples/Foo" ,
18251833 "compilation_success" : True ,
18261834 "flash" : 444 ,
@@ -1830,7 +1838,7 @@ def test_create_sketches_report_file(monkeypatch, tmp_path):
18301838 "flash_delta" : - 994 ,
18311839 "ram_delta" : - 175 ,
18321840 "fqbn" : "arduino:avr:uno"
1833- }
1841+ }]
18341842
18351843 compile_sketches = get_compilesketches_object (sketches_report_path = str (sketches_report_path ),
18361844 fqbn_arg = "arduino:avr:uno" )
0 commit comments