@@ -529,7 +529,7 @@ def test_fetch_commit_coverage_file_call_the_command(
529529 ):
530530 query = (
531531 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 } } }'
533533 )
534534 variables = {
535535 "org" : self .org .username ,
@@ -556,7 +556,6 @@ def test_fetch_commit_coverage_file_call_the_command(
556556 assert coverageFile ["content" ] == fake_coverage ["content" ]
557557 assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
558558 assert coverageFile ["totals" ] == fake_coverage ["totals" ]
559- assert coverageFile ["isCriticalFile" ] == False
560559 assert coverageFile ["hashedPath" ] == hashlib .md5 ("path" .encode ()).hexdigest ()
561560
562561 @patch ("services.components.component_filtered_report" )
@@ -609,7 +608,7 @@ def test_fetch_commit_coverage_file_with_components(
609608 commit(id: $commit) {
610609 coverageAnalytics {
611610 coverageFile(path: "path", components: $components) {
612- hashedPath, content, isCriticalFile, coverage { line,coverage }, totals { percentCovered }
611+ hashedPath, content, coverage { line,coverage }, totals { percentCovered }
613612 }
614613 }
615614 }
@@ -634,7 +633,6 @@ def test_fetch_commit_coverage_file_with_components(
634633 {"coverage" : "M" , "line" : 2 },
635634 ],
636635 "hashedPath" : "d6fe1d0be6347b8ef2427fa629c04485" ,
637- "isCriticalFile" : False ,
638636 "totals" : {"percentCovered" : 83.0 },
639637 }
640638 }
@@ -652,7 +650,7 @@ def test_fetch_commit_with_no_coverage_data(
652650 ):
653651 query = (
654652 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 } } }'
656654 )
657655 variables = {
658656 "org" : self .org .username ,
@@ -671,7 +669,6 @@ def test_fetch_commit_with_no_coverage_data(
671669 assert coverageFile ["content" ] == fake_coverage ["content" ]
672670 assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
673671 assert coverageFile ["totals" ] == fake_coverage ["totals" ]
674- assert coverageFile ["isCriticalFile" ] == False
675672
676673 @patch ("shared.reports.api_report_service.build_report_from_commit" )
677674 def test_flag_names (self , report_mock ):
@@ -2627,7 +2624,7 @@ def test_fetch_commit_coverage_coverage_file(
26272624 ):
26282625 query = (
26292626 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 } } }'
26312628 )
26322629 variables = {
26332630 "org" : self .org .username ,
@@ -2654,7 +2651,6 @@ def test_fetch_commit_coverage_coverage_file(
26542651 assert coverageFile ["content" ] == fake_coverage ["content" ]
26552652 assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
26562653 assert coverageFile ["totals" ] == fake_coverage ["totals" ]
2657- assert coverageFile ["isCriticalFile" ] == False
26582654 assert coverageFile ["hashedPath" ] == hashlib .md5 ("path" .encode ()).hexdigest ()
26592655
26602656 @patch ("services.components.component_filtered_report" )
@@ -2707,7 +2703,7 @@ def test_fetch_commit_coverage_coverage_file_with_components(
27072703 commit(id: $commit) {
27082704 coverageAnalytics {
27092705 coverageFile(path: "path", components: $components) {
2710- hashedPath, content, isCriticalFile, coverage { line,coverage }, totals { percentCovered }
2706+ hashedPath, content, coverage { line,coverage }, totals { percentCovered }
27112707 }
27122708 }
27132709 }
@@ -2732,7 +2728,6 @@ def test_fetch_commit_coverage_coverage_file_with_components(
27322728 {"coverage" : "M" , "line" : 2 },
27332729 ],
27342730 "hashedPath" : "d6fe1d0be6347b8ef2427fa629c04485" ,
2735- "isCriticalFile" : False ,
27362731 "totals" : {"percentCovered" : 83.0 },
27372732 }
27382733 }
@@ -2750,7 +2745,7 @@ def test_fetch_commit_coverage_with_no_coverage_data(
27502745 ):
27512746 query = (
27522747 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 } }}'
27542749 )
27552750 variables = {
27562751 "org" : self .org .username ,
@@ -2769,7 +2764,6 @@ def test_fetch_commit_coverage_with_no_coverage_data(
27692764 assert coverageFile ["content" ] == fake_coverage ["content" ]
27702765 assert coverageFile ["coverage" ] == fake_coverage ["coverage" ]
27712766 assert coverageFile ["totals" ] == fake_coverage ["totals" ]
2772- assert coverageFile ["isCriticalFile" ] == False
27732767
27742768 @patch ("shared.reports.api_report_service.build_report_from_commit" )
27752769 def test_coverage_flag_names (self , report_mock ):
0 commit comments