@@ -1559,14 +1559,18 @@ def test_get_sketches_report(monkeypatch, mocker):
15591559 compile_sketches = get_compilesketches_object (fqbn_arg = fqbn_arg )
15601560
15611561 assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1562- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
15631562 compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
15641563 compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
15651564 + github_repository
15661565 + "/commit/"
15671566 + current_git_ref ),
1568- compilesketches .CompileSketches .ReportKeys .sizes : sizes_summary_report ,
1569- compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1567+ compilesketches .CompileSketches .ReportKeys .boards : [
1568+ {
1569+ compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1570+ compilesketches .CompileSketches .ReportKeys .sizes : sizes_summary_report ,
1571+ compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1572+ }
1573+ ]
15701574 }
15711575
15721576 compile_sketches .get_sizes_summary_report .assert_called_once_with (compile_sketches ,
@@ -1576,13 +1580,17 @@ def test_get_sketches_report(monkeypatch, mocker):
15761580 compilesketches .CompileSketches .get_sizes_summary_report .return_value = []
15771581
15781582 assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1579- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
15801583 compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
15811584 compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
15821585 + github_repository
15831586 + "/commit/"
15841587 + current_git_ref ),
1585- compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1588+ compilesketches .CompileSketches .ReportKeys .boards : [
1589+ {
1590+ compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1591+ compilesketches .CompileSketches .ReportKeys .sketches : sketch_report_list
1592+ }
1593+ ]
15861594 }
15871595
15881596
@@ -1816,7 +1824,7 @@ def test_get_sizes_summary_report():
18161824
18171825def test_create_sketches_report_file (monkeypatch , tmp_path ):
18181826 sketches_report_path = tmp_path
1819- sketches_report = {
1827+ sketches_report = [ {
18201828 "sketch" : "examples/Foo" ,
18211829 "compilation_success" : True ,
18221830 "flash" : 444 ,
@@ -1826,7 +1834,7 @@ def test_create_sketches_report_file(monkeypatch, tmp_path):
18261834 "flash_delta" : - 994 ,
18271835 "ram_delta" : - 175 ,
18281836 "fqbn" : "arduino:avr:uno"
1829- }
1837+ }]
18301838
18311839 compile_sketches = get_compilesketches_object (sketches_report_path = str (sketches_report_path ),
18321840 fqbn_arg = "arduino:avr:uno" )
0 commit comments