@@ -1559,14 +1559,18 @@ def test_get_sketches_report(monkeypatch, mocker):
1559
1559
compile_sketches = get_compilesketches_object (fqbn_arg = fqbn_arg )
1560
1560
1561
1561
assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1562
- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1563
1562
compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
1564
1563
compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
1565
1564
+ github_repository
1566
1565
+ "/commit/"
1567
1566
+ 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
+ ]
1570
1574
}
1571
1575
1572
1576
compile_sketches .get_sizes_summary_report .assert_called_once_with (compile_sketches ,
@@ -1576,13 +1580,17 @@ def test_get_sketches_report(monkeypatch, mocker):
1576
1580
compilesketches .CompileSketches .get_sizes_summary_report .return_value = []
1577
1581
1578
1582
assert compile_sketches .get_sketches_report (sketch_report_list = sketch_report_list ) == {
1579
- compilesketches .CompileSketches .ReportKeys .board : compile_sketches .fqbn ,
1580
1583
compilesketches .CompileSketches .ReportKeys .commit_hash : current_git_ref ,
1581
1584
compilesketches .CompileSketches .ReportKeys .commit_url : ("https://github.com/"
1582
1585
+ github_repository
1583
1586
+ "/commit/"
1584
1587
+ 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
+ ]
1586
1594
}
1587
1595
1588
1596
@@ -1816,7 +1824,7 @@ def test_get_sizes_summary_report():
1816
1824
1817
1825
def test_create_sketches_report_file (monkeypatch , tmp_path ):
1818
1826
sketches_report_path = tmp_path
1819
- sketches_report = {
1827
+ sketches_report = [ {
1820
1828
"sketch" : "examples/Foo" ,
1821
1829
"compilation_success" : True ,
1822
1830
"flash" : 444 ,
@@ -1826,7 +1834,7 @@ def test_create_sketches_report_file(monkeypatch, tmp_path):
1826
1834
"flash_delta" : - 994 ,
1827
1835
"ram_delta" : - 175 ,
1828
1836
"fqbn" : "arduino:avr:uno"
1829
- }
1837
+ }]
1830
1838
1831
1839
compile_sketches = get_compilesketches_object (sketches_report_path = str (sketches_report_path ),
1832
1840
fqbn_arg = "arduino:avr:uno" )
0 commit comments