@@ -1563,14 +1563,18 @@ def test_get_sketches_report(monkeypatch, mocker):
1563
1563
compile_sketches = get_compilesketches_object (fqbn_arg = fqbn_arg )
1564
1564
1565
1565
assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1566
- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1567
1566
compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
1568
1567
compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
1569
1568
+ github_repository
1570
1569
+ "/commit/"
1571
1570
+ 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
+ ]
1574
1578
}
1575
1579
1576
1580
compile_sketches .get_sizes_summary_report .assert_called_once_with (compile_sketches ,
@@ -1580,13 +1584,17 @@ def test_get_sketches_report(monkeypatch, mocker):
1580
1584
compilesketches .CompileSketches .get_sizes_summary_report .return_value = []
1581
1585
1582
1586
assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1583
- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1584
1587
compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
1585
1588
compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
1586
1589
+ github_repository
1587
1590
+ "/commit/"
1588
1591
+ 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
+ ]
1590
1598
}
1591
1599
1592
1600
@@ -1820,7 +1828,7 @@ def test_get_sizes_summary_report():
1820
1828
1821
1829
def test_create_sketches_report_file (monkeypatch , tmp_path ):
1822
1830
sketches_report_path = tmp_path
1823
- sketches_report = {
1831
+ sketches_report = [ {
1824
1832
"sketch" : "examples/Foo" ,
1825
1833
"compilation_success" : True ,
1826
1834
"flash" : 444 ,
@@ -1830,7 +1838,7 @@ def test_create_sketches_report_file(monkeypatch, tmp_path):
1830
1838
"flash_delta" : - 994 ,
1831
1839
"ram_delta" : - 175 ,
1832
1840
"fqbn" : "arduino:avr:uno"
1833
- }
1841
+ }]
1834
1842
1835
1843
compile_sketches = get_compilesketches_object (sketches_report_path = str (sketches_report_path ),
1836
1844
fqbn_arg = "arduino:avr:uno" )
0 commit comments