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

Commit 4b16137

Browse files
deps: update shared (#1133)
1 parent 79d8ea9 commit 4b16137

18 files changed

Lines changed: 57 additions & 42 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ dev-dependencies = [
8383
[tool.uv.sources]
8484
timestring = { git = "https://github.com/codecov/timestring", rev = "d37ceacc5954dff3b5bd2f887936a98a668dda42" }
8585
test-results-parser = { git = "https://github.com/codecov/test-results-parser", rev = "190bbc8a911099749928e13d5fe57f6027ca1e74" }
86-
shared = { git = "https://github.com/codecov/shared", rev = "e9567e60e40893fd873c319b7dcc7ca05b5685e3" }
86+
shared = { git = "https://github.com/codecov/shared", rev = "0e628785869c8ce4492a3f83bc0b445dee00150a" }

services/comparison/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import pytest
44
from shared.reports.readonly import ReadOnlyReport
5-
from shared.reports.resources import Report, ReportFile, ReportLine
5+
from shared.reports.reportfile import ReportFile
6+
from shared.reports.resources import Report
7+
from shared.reports.types import ReportLine
68
from shared.utils.sessions import Session
79

810
from database.tests.factories import CommitFactory, PullFactory, RepositoryFactory

services/comparison/tests/unit/test_changes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
2-
from shared.reports.resources import Report, ReportFile, ReportLine
3-
from shared.reports.types import ReportTotals
2+
from shared.reports.reportfile import ReportFile
3+
from shared.reports.resources import Report
4+
from shared.reports.types import ReportLine, ReportTotals
45

56
from services.comparison.changes import (
67
Change,

services/notification/notifiers/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import pytest
44
from shared.reports.readonly import ReadOnlyReport
5-
from shared.reports.resources import Report, ReportFile, ReportLine
5+
from shared.reports.reportfile import ReportFile
6+
from shared.reports.resources import Report
7+
from shared.reports.types import ReportLine
68
from shared.utils.sessions import Session
79

810
from database.tests.factories import (

services/notification/notifiers/tests/unit/test_checks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
import pytest
66
from shared.reports.readonly import ReadOnlyReport
7-
from shared.reports.resources import Report, ReportFile, ReportLine
7+
from shared.reports.reportfile import ReportFile
8+
from shared.reports.resources import Report
9+
from shared.reports.types import ReportLine
810
from shared.torngit.exceptions import TorngitClientGeneralError, TorngitError
911
from shared.torngit.status import Status
1012
from shared.yaml.user_yaml import UserYaml

services/notification/notifiers/tests/unit/test_status.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
import pytest
44
from mock import AsyncMock
55
from shared.reports.readonly import ReadOnlyReport
6-
from shared.reports.resources import Report, ReportFile, ReportLine
7-
from shared.reports.types import ReportTotals
6+
from shared.reports.reportfile import ReportFile
7+
from shared.reports.resources import Report
8+
from shared.reports.types import ReportLine, ReportTotals
89
from shared.torngit.exceptions import (
910
TorngitClientError,
1011
TorngitRepoNotFoundError,

services/notification/notifiers/tests/unit/test_webhook.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_build_commit_payload(
5959
"sessions": 1,
6060
"complexity": 10,
6161
"complexity_total": 2,
62-
"diff": 0,
62+
"diff": None,
6363
},
6464
"commitid": head_commit.commitid,
6565
"service_url": f"https://github.com/{repository.slug}/commit/{head_commit.commitid}",
@@ -239,7 +239,7 @@ def test_build_payload(self, dbsession, mock_configuration, sample_comparison):
239239
"sessions": 1,
240240
"complexity": 10,
241241
"complexity_total": 2,
242-
"diff": 0,
242+
"diff": None,
243243
},
244244
"commitid": head_commit.commitid,
245245
"service_url": f"https://github.com/{repository.slug}/commit/{head_commit.commitid}",
@@ -269,7 +269,7 @@ def test_build_payload(self, dbsession, mock_configuration, sample_comparison):
269269
"sessions": 1,
270270
"complexity": 11,
271271
"complexity_total": 20,
272-
"diff": 0,
272+
"diff": None,
273273
},
274274
"commitid": base_commit.commitid,
275275
"service_url": f"https://github.com/{repository.slug}/commit/{base_commit.commitid}",
@@ -365,7 +365,7 @@ def test_build_payload_higher_precision(
365365
"sessions": 1,
366366
"complexity": 10,
367367
"complexity_total": 2,
368-
"diff": 0,
368+
"diff": None,
369369
},
370370
"commitid": head_commit.commitid,
371371
"service_url": f"https://github.com/{repository.slug}/commit/{head_commit.commitid}",
@@ -395,7 +395,7 @@ def test_build_payload_higher_precision(
395395
"sessions": 1,
396396
"complexity": 11,
397397
"complexity_total": 20,
398-
"diff": 0,
398+
"diff": None,
399399
},
400400
"commitid": base_commit.commitid,
401401
"service_url": f"https://github.com/{repository.slug}/commit/{base_commit.commitid}",
@@ -482,7 +482,7 @@ def test_build_payload_without_pull(
482482
"sessions": 1,
483483
"complexity": 10,
484484
"complexity_total": 2,
485-
"diff": 0,
485+
"diff": None,
486486
},
487487
"commitid": head_commit.commitid,
488488
"service_url": f"https://github.com/{repository.slug}/commit/{head_commit.commitid}",
@@ -512,7 +512,7 @@ def test_build_payload_without_pull(
512512
"sessions": 1,
513513
"complexity": 11,
514514
"complexity_total": 20,
515-
"diff": 0,
515+
"diff": None,
516516
},
517517
"commitid": base_commit.commitid,
518518
"service_url": f"https://github.com/{repository.slug}/commit/{base_commit.commitid}",
@@ -595,7 +595,7 @@ def test_build_payload_without_base_report(
595595
"sessions": 1,
596596
"complexity": 10,
597597
"complexity_total": 2,
598-
"diff": 0,
598+
"diff": None,
599599
},
600600
"commitid": head_commit.commitid,
601601
"service_url": f"https://github.com/{repository.slug}/commit/{head_commit.commitid}",
@@ -700,7 +700,7 @@ def test_build_payload_without_base(
700700
"sessions": 1,
701701
"complexity": 10,
702702
"complexity_total": 2,
703-
"diff": 0,
703+
"diff": None,
704704
},
705705
"commitid": head_commit.commitid,
706706
"service_url": f"https://github.com/{repository.slug}/commit/{head_commit.commitid}",

services/notification/tests/unit/test_notification_service.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
import pytest
77
from celery.exceptions import SoftTimeLimitExceeded
88
from shared.plan.constants import PlanName
9-
from shared.reports.resources import Report, ReportFile, ReportLine
10-
from shared.reports.types import Change, ReportTotals
9+
from shared.reports.reportfile import ReportFile
10+
from shared.reports.resources import Report
11+
from shared.reports.types import Change, ReportLine, ReportTotals
1112
from shared.torngit.status import Status
1213
from shared.yaml import UserYaml
1314

services/report/report_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
from enum import Enum
44
from typing import Any, List, Sequence
55

6-
from shared.reports.resources import Report, ReportFile, ReportLine
7-
from shared.reports.types import CoverageDatapoint, LineSession
6+
from shared.reports.reportfile import ReportFile
7+
from shared.reports.resources import Report
8+
from shared.reports.types import CoverageDatapoint, LineSession, ReportLine
89
from shared.yaml.user_yaml import UserYaml
910

1011
from helpers.labels import SpecialLabelsEnum

services/report/tests/unit/test_process.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
import pytest
66
from lxml import etree
7-
from shared.reports.resources import Report, ReportFile, ReportLine
8-
from shared.reports.types import LineSession, ReportTotals
7+
from shared.reports.reportfile import ReportFile
8+
from shared.reports.resources import Report
9+
from shared.reports.types import LineSession, ReportLine, ReportTotals
910
from shared.utils.sessions import Session
1011
from shared.yaml import UserYaml
1112

0 commit comments

Comments
 (0)