@@ -529,7 +529,7 @@ def test_fetch_commit_coverage_file_call_the_command(
529
529
):
530
530
query = (
531
531
query_commit
532
- % 'coverageAnalytics { coverageFile(path: "path") { hashedPath, content, isCriticalFile, coverage { line,coverage }, totals { percentCovered } } }'
532
+ % 'coverageAnalytics { coverageFile(path: "path") { hashedPath, content, coverage { line,coverage }, totals { percentCovered } } }'
533
533
)
534
534
variables = {
535
535
"org" : self .org .username ,
@@ -556,7 +556,6 @@ def test_fetch_commit_coverage_file_call_the_command(
556
556
assert coverageFile ["content" ] == fake_coverage ["content" ]
557
557
assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
558
558
assert coverageFile ["totals" ] == fake_coverage ["totals" ]
559
- assert coverageFile ["isCriticalFile" ] == False
560
559
assert coverageFile ["hashedPath" ] == hashlib .md5 ("path" .encode ()).hexdigest ()
561
560
562
561
@patch ("services.components.component_filtered_report" )
@@ -609,7 +608,7 @@ def test_fetch_commit_coverage_file_with_components(
609
608
commit(id: $commit) {
610
609
coverageAnalytics {
611
610
coverageFile(path: "path", components: $components) {
612
- hashedPath, content, isCriticalFile, coverage { line,coverage }, totals { percentCovered }
611
+ hashedPath, content, coverage { line,coverage }, totals { percentCovered }
613
612
}
614
613
}
615
614
}
@@ -634,7 +633,6 @@ def test_fetch_commit_coverage_file_with_components(
634
633
{"coverage" : "M" , "line" : 2 },
635
634
],
636
635
"hashedPath" : "d6fe1d0be6347b8ef2427fa629c04485" ,
637
- "isCriticalFile" : False ,
638
636
"totals" : {"percentCovered" : 83.0 },
639
637
}
640
638
}
@@ -652,7 +650,7 @@ def test_fetch_commit_with_no_coverage_data(
652
650
):
653
651
query = (
654
652
query_commit
655
- % 'coverageAnalytics { coverageFile(path: "path") { content, isCriticalFile, coverage { line,coverage }, totals { percentCovered } } }'
653
+ % 'coverageAnalytics { coverageFile(path: "path") { content, coverage { line,coverage }, totals { percentCovered } } }'
656
654
)
657
655
variables = {
658
656
"org" : self .org .username ,
@@ -671,7 +669,6 @@ def test_fetch_commit_with_no_coverage_data(
671
669
assert coverageFile ["content" ] == fake_coverage ["content" ]
672
670
assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
673
671
assert coverageFile ["totals" ] == fake_coverage ["totals" ]
674
- assert coverageFile ["isCriticalFile" ] == False
675
672
676
673
@patch ("shared.reports.api_report_service.build_report_from_commit" )
677
674
def test_flag_names (self , report_mock ):
@@ -2627,7 +2624,7 @@ def test_fetch_commit_coverage_coverage_file(
2627
2624
):
2628
2625
query = (
2629
2626
query_commit
2630
- % 'coverageAnalytics { coverageFile(path: "path") { hashedPath, content, isCriticalFile, coverage { line,coverage }, totals { percentCovered } } }'
2627
+ % 'coverageAnalytics { coverageFile(path: "path") { hashedPath, content, coverage { line,coverage }, totals { percentCovered } } }'
2631
2628
)
2632
2629
variables = {
2633
2630
"org" : self .org .username ,
@@ -2654,7 +2651,6 @@ def test_fetch_commit_coverage_coverage_file(
2654
2651
assert coverageFile ["content" ] == fake_coverage ["content" ]
2655
2652
assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
2656
2653
assert coverageFile ["totals" ] == fake_coverage ["totals" ]
2657
- assert coverageFile ["isCriticalFile" ] == False
2658
2654
assert coverageFile ["hashedPath" ] == hashlib .md5 ("path" .encode ()).hexdigest ()
2659
2655
2660
2656
@patch ("services.components.component_filtered_report" )
@@ -2707,7 +2703,7 @@ def test_fetch_commit_coverage_coverage_file_with_components(
2707
2703
commit(id: $commit) {
2708
2704
coverageAnalytics {
2709
2705
coverageFile(path: "path", components: $components) {
2710
- hashedPath, content, isCriticalFile, coverage { line,coverage }, totals { percentCovered }
2706
+ hashedPath, content, coverage { line,coverage }, totals { percentCovered }
2711
2707
}
2712
2708
}
2713
2709
}
@@ -2732,7 +2728,6 @@ def test_fetch_commit_coverage_coverage_file_with_components(
2732
2728
{"coverage" : "M" , "line" : 2 },
2733
2729
],
2734
2730
"hashedPath" : "d6fe1d0be6347b8ef2427fa629c04485" ,
2735
- "isCriticalFile" : False ,
2736
2731
"totals" : {"percentCovered" : 83.0 },
2737
2732
}
2738
2733
}
@@ -2750,7 +2745,7 @@ def test_fetch_commit_coverage_with_no_coverage_data(
2750
2745
):
2751
2746
query = (
2752
2747
query_commit
2753
- % 'coverageAnalytics { coverageFile(path: "path") { content, isCriticalFile, coverage { line,coverage }, totals { percentCovered } }}'
2748
+ % 'coverageAnalytics { coverageFile(path: "path") { content, coverage { line,coverage }, totals { percentCovered } }}'
2754
2749
)
2755
2750
variables = {
2756
2751
"org" : self .org .username ,
@@ -2769,7 +2764,6 @@ def test_fetch_commit_coverage_with_no_coverage_data(
2769
2764
assert coverageFile ["content" ] == fake_coverage ["content" ]
2770
2765
assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
2771
2766
assert coverageFile ["totals" ] == fake_coverage ["totals" ]
2772
- assert coverageFile ["isCriticalFile" ] == False
2773
2767
2774
2768
@patch ("shared.reports.api_report_service.build_report_from_commit" )
2775
2769
def test_coverage_flag_names (self , report_mock ):
0 commit comments