Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 07ffe2f

Browse files
authored
update shared (#1219)
1 parent a9bc72c commit 07ffe2f

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

api/internal/tests/views/test_compare_viewset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ def setUp(self):
9191
self.base_file = ReportFile(
9292
name=self.file_name, totals=[46, 46, 0, 0, 100, 0, 0, 0, 1, 0, 0, 0]
9393
)
94-
self.base_file._lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 46
94+
self.base_file._parsed_lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 46
9595
self.base_report = MockSerializableReport()
9696
self.base_report.mocked_files = {self.file_name: self.base_file}
9797

9898
self.head_file = ReportFile(
9999
name=self.file_name, totals=[6, 6, 0, 0, 100, 0, 0, 0, 1, 0, 0, 0]
100100
)
101-
self.head_file._lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 6
101+
self.head_file._parsed_lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 6
102102
self.head_file.totals.diff = ReportTotals.default_totals()
103103
self.head_report = MockSerializableReport()
104104
self.head_report.mocked_files = {self.file_name: self.head_file}

api/public/v2/tests/test_api_compare_viewset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ def setUp(self):
259259
self.base_file = ReportFile(
260260
name=self.file_name, totals=[46, 46, 0, 0, 100, 0, 0, 0, 1, 0, 0, 0]
261261
)
262-
self.base_file._lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 46
262+
self.base_file._parsed_lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 46
263263
self.base_report = MockSerializableReport()
264264
self.base_report.mocked_files = {self.file_name: self.base_file}
265265

266266
self.head_file = ReportFile(
267267
name=self.file_name, totals=[6, 6, 0, 0, 100, 0, 0, 0, 1, 0, 0, 0]
268268
)
269-
self.head_file._lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 6
269+
self.head_file._parsed_lines = [[1, "", [[1, 1, 0, 0, 0]], 0, 0]] * 6
270270
self.head_file.totals.diff = ReportTotals.default_totals()
271271
self.head_report = MockSerializableReport()
272272
self.head_report.mocked_files = {self.file_name: self.head_file}

codecov/settings_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
ALLOWED_HOSTS = ["localhost"]
66
CORS_ALLOWED_ORIGINS = ["http://localhost:9000", "http://localhost"]
7+
SHELTER_ENABLED = True
78
SHELTER_PUBSUB_PROJECT_ID = "test-project-id"
89
SHELTER_PUBSUB_SYNC_REPO_TOPIC_ID = "test-topic-id"
910

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ dev-dependencies = [
7474
]
7575

7676
[tool.uv.sources]
77-
shared = { git = "https://github.com/codecov/shared", rev = "284b92c74f0bc7ca5c4f6f139f3b26fe64fe9c1a" }
77+
shared = { git = "https://github.com/codecov/shared", rev = "290557e977c4ff60d5d9dcb9ee54afea1c1df83f" }

services/tests/test_comparison.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ def test_lines(self):
569569
}
570570
src = [first_line_val, "this is an added line", last_line_val]
571571

572-
self.file_comparison.head_file._lines = head_lines
573-
self.file_comparison.base_file._lines = base_lines
572+
self.file_comparison.head_file._parsed_lines = head_lines
573+
self.file_comparison.base_file._parsed_lines = base_lines
574574
self.file_comparison.diff_data = {"segments": [segment]}
575575
self.file_comparison.src = src
576576

@@ -665,8 +665,8 @@ def test_change_summary(self):
665665
}
666666
src = [first_line_val, "this is an added line", last_line_val]
667667

668-
self.file_comparison.head_file._lines = head_lines
669-
self.file_comparison.base_file._lines = base_lines
668+
self.file_comparison.head_file._parsed_lines = head_lines
669+
self.file_comparison.base_file._parsed_lines = base_lines
670670
self.file_comparison.diff_data = {"segments": [segment]}
671671
self.file_comparison.src = src
672672

@@ -1311,10 +1311,10 @@ def setUp(self):
13111311

13121312
def test_single_segment(self):
13131313
self.file_comparison.src = self._src(12)
1314-
self.file_comparison.head_file._lines = self._report_lines(
1314+
self.file_comparison.head_file._parsed_lines = self._report_lines(
13151315
[1 for _ in range(12)]
13161316
)
1317-
self.file_comparison.base_file._lines = self._report_lines(
1317+
self.file_comparison.base_file._parsed_lines = self._report_lines(
13181318
[
13191319
1,
13201320
1, # first line of segment
@@ -1341,10 +1341,10 @@ def test_single_segment(self):
13411341

13421342
def test_multiple_segments(self):
13431343
self.file_comparison.src = self._src(25)
1344-
self.file_comparison.head_file._lines = self._report_lines(
1344+
self.file_comparison.head_file._parsed_lines = self._report_lines(
13451345
[1 for _ in range(25)]
13461346
)
1347-
self.file_comparison.base_file._lines = self._report_lines(
1347+
self.file_comparison.base_file._parsed_lines = self._report_lines(
13481348
[
13491349
1,
13501350
1, # first line of segment 1

uv.lock

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)