@@ -747,48 +747,48 @@ def test_fetch_impacted_file_with_invalid_comparison(
747747 }
748748 }
749749
750- @patch ("services.comparison.Comparison.validate" )
751- @patch ("services.comparison.PullRequestComparison.get_file_comparison" )
752- @patch ("shared.api_archive.archive.ArchiveService.read_file" )
753- def test_fetch_impacted_file_segments_with_direct_and_indirect_changes (
754- self , read_file , mock_get_file_comparison , mock_compare_validate
755- ):
756- read_file .return_value = mock_data_from_archive
757-
758- mock_get_file_comparison .return_value = MockFileComparison ()
759- mock_compare_validate .return_value = True
760- variables = {
761- "org" : self .org .username ,
762- "repo" : self .repo .name ,
763- "pull" : self .pull .pullid ,
764- "path" : "fileA" ,
765- }
766- data = self .gql_request (query_impacted_file_through_pull , variables = variables )
767- assert data == {
768- "owner" : {
769- "repository" : {
770- "pull" : {
771- "compareWithBase" : {
772- "state" : "processed" ,
773- "impactedFile" : {
774- "headName" : "fileA" ,
775- "baseName" : "fileA" ,
776- "hashedPath" : "5e9f0c9689fb7ec181ea0fb09ad3f74e" ,
777- "baseCoverage" : {"percentCovered" : 41.666666666666664 },
778- "headCoverage" : {"percentCovered" : 85.71428571428571 },
779- "patchCoverage" : {"percentCovered" : 50.0 },
780- "segments" : {
781- "results" : [
782- {"hasUnintendedChanges" : False },
783- {"hasUnintendedChanges" : True },
784- ]
785- },
786- },
787- }
788- }
789- }
790- }
791- }
750+ # @patch("services.comparison.Comparison.validate")
751+ # @patch("services.comparison.PullRequestComparison.get_file_comparison")
752+ # @patch("shared.api_archive.archive.ArchiveService.read_file")
753+ # def test_fetch_impacted_file_segments_with_direct_and_indirect_changes(
754+ # self, read_file, mock_get_file_comparison, mock_compare_validate
755+ # ):
756+ # read_file.return_value = mock_data_from_archive
757+
758+ # mock_get_file_comparison.return_value = MockFileComparison()
759+ # mock_compare_validate.return_value = True
760+ # variables = {
761+ # "org": self.org.username,
762+ # "repo": self.repo.name,
763+ # "pull": self.pull.pullid,
764+ # "path": "fileA",
765+ # }
766+ # data = self.gql_request(query_impacted_file_through_pull, variables=variables)
767+ # assert data == {
768+ # "owner": {
769+ # "repository": {
770+ # "pull": {
771+ # "compareWithBase": {
772+ # "state": "processed",
773+ # "impactedFile": {
774+ # "headName": "fileA",
775+ # "baseName": "fileA",
776+ # "hashedPath": "5e9f0c9689fb7ec181ea0fb09ad3f74e",
777+ # "baseCoverage": {"percentCovered": 41.666666666666664},
778+ # "headCoverage": {"percentCovered": 85.71428571428571},
779+ # "patchCoverage": {"percentCovered": 50.0},
780+ # "segments": {
781+ # "results": [
782+ # {"hasUnintendedChanges": False},
783+ # {"hasUnintendedChanges": True},
784+ # ]
785+ # },
786+ # },
787+ # }
788+ # }
789+ # }
790+ # }
791+ # }
792792
793793 @patch ("services.comparison.Comparison.validate" )
794794 @patch ("services.comparison.PullRequestComparison.get_file_comparison" )
0 commit comments