Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitvinnakota-codecov committed Dec 9, 2024
1 parent 4598a26 commit 71e4890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def test_impacted_files_filtered_by_misses_count_ascending(self, read_file):
}
comparison = None
impacted_files = self.execute(None, self.comparison_report, comparison, filters)
assert [file.head_name for file in impacted_files] == ["fileA", "fileB"]
assert [file.head_name for file in impacted_files] == ["fileB", "fileA"]

@patch("shared.api_archive.archive.ArchiveService.read_file")
def test_impacted_files_filtered_by_misses_count_descending(self, read_file):
Expand All @@ -524,7 +524,7 @@ def test_impacted_files_filtered_by_misses_count_descending(self, read_file):
}
comparison = None
impacted_files = self.execute(None, self.comparison_report, comparison, filters)
assert [file.head_name for file in impacted_files] == ["fileB", "fileA"]
assert [file.head_name for file in impacted_files] == ["fileA", "fileB"]

@patch("shared.api_archive.archive.ArchiveService.read_file")
def test_impacted_files_without_filters(self, read_file):
Expand Down
3 changes: 2 additions & 1 deletion graphql_api/tests/test_impacted_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ def test_fetch_impacted_files(self, read_file):
"commit": self.commit.commitid,
}
data = self.gql_request(query_impacted_files, variables=variables)
print(data)
assert data == {
"owner": {
"repository": {
Expand Down Expand Up @@ -449,7 +450,7 @@ def test_fetch_impacted_files(self, read_file):
"percentCovered": 85.71428571428571
},
"changeCoverage": 44.047619047619044,
"missesCount": 2,
"missesCount": 1,
},
]
},
Expand Down

0 comments on commit 71e4890

Please sign in to comment.