Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions services/tests/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_report_generator(self):
}

res = build_report(**data)
assert len(res._chunks) == 3
assert len(res.files) == 3

@patch("shared.api_archive.archive.ArchiveService.read_chunks")
def test_build_report_from_commit(self, read_chunks_mock):
Expand All @@ -123,7 +123,6 @@ def test_build_report_from_commit(self, read_chunks_mock):
)

res = build_report_from_commit(commit)
assert len(res._chunks) == 3
assert len(res.files) == 3
file_1, file_2, file_3 = sorted_files(res)
assert file_1.name == "awesome/__init__.py"
Expand Down Expand Up @@ -187,7 +186,6 @@ def test_build_report_from_commit_null_session_totals(self, read_chunks_mock):
upload = commit.reports.first().sessions.first()
upload.uploadleveltotals.delete()
res = build_report_from_commit(commit)
assert len(res._chunks) == 3
assert len(res.files) == 3
file_1, file_2, file_3 = sorted_files(res)
assert file_1.name == "awesome/__init__.py"
Expand Down Expand Up @@ -220,7 +218,6 @@ def test_build_report_from_commit_with_flags(self, read_chunks_mock):
commit = CommitWithReportFactory.create(message="aaaaa", commitid="abf6d4d")
report = build_report_from_commit(commit)
res = report.flags["integrations"].report
assert len(res.report._chunks) == 3
assert len(res.files) == 3
file_1, file_2, file_3 = sorted_files(res)
assert file_1.name == "awesome/__init__.py"
Expand Down Expand Up @@ -260,7 +257,6 @@ def test_build_report_from_commit_with_non_carried_forward_flags(

report = build_report_from_commit(commit)
res = report.flags["integrations"].report
assert len(res.report._chunks) == 3
assert len(res.files) == 3
file_1, file_2, file_3 = sorted_files(res)
assert file_1.name == "awesome/__init__.py"
Expand Down Expand Up @@ -345,7 +341,6 @@ def test_build_report_from_commit_fallback(self, read_chunks_mock):
)
res = build_report_from_commit(commit)

assert len(res._chunks) == 3
assert len(res.files) == 3
file_1, file_2, file_3 = sorted_files(res)
assert file_1.name == "awesome/__init__.py"
Expand Down
Loading