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

Commit 7899cfb

Browse files
committed
fix: dedup by computed_name
1 parent e6b347d commit 7899cfb

File tree

38 files changed

+853
-175
lines changed

38 files changed

+853
-175
lines changed

api/internal/tests/views/test_coverage_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
OwnerFactory,
1111
RepositoryFactory,
1212
)
13-
from shared.reports.resources import Report, ReportFile, ReportLine
13+
from shared.reports.resources import Report, ReportFile
14+
from shared.reports.types import ReportLine
1415
from shared.utils.sessions import Session
1516

1617
from services.components import Component

api/public/v2/tests/test_api_compare_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
RepositoryFactory,
1313
)
1414
from shared.reports.api_report_service import SerializableReport
15-
from shared.reports.resources import Report, ReportFile, ReportLine
15+
from shared.reports.resources import Report, ReportFile
16+
from shared.reports.types import ReportLine
1617
from shared.reports.types import ReportTotals
1718
from shared.utils.merge import LineType
1819
from shared.utils.sessions import Session

api/public/v2/tests/test_api_component_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
OwnerFactory,
88
RepositoryFactory,
99
)
10-
from shared.reports.resources import Report, ReportFile, ReportLine
10+
from shared.reports.resources import Report, ReportFile
11+
from shared.reports.types import ReportLine
1112
from shared.utils.sessions import Session
1213

1314
from services.components import Component

api/public/v2/tests/test_file_report_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
OwnerFactory,
1010
RepositoryFactory,
1111
)
12-
from shared.reports.resources import Report, ReportFile, ReportLine
12+
from shared.reports.resources import Report, ReportFile
13+
from shared.reports.types import ReportLine
1314
from shared.utils.sessions import Session
1415

1516
from core.models import Branch

api/public/v2/tests/test_flag_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
OwnerFactory,
88
RepositoryFactory,
99
)
10-
from shared.reports.resources import Report, ReportFile, ReportLine
10+
from shared.reports.resources import Report, ReportFile
11+
from shared.reports.types import ReportLine
1112
from shared.utils.sessions import Session
1213

1314
from reports.tests.factories import RepositoryFlagFactory

api/public/v2/tests/test_report_tree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
OwnerFactory,
99
RepositoryFactory,
1010
)
11-
from shared.reports.resources import Report, ReportFile, ReportLine
11+
from shared.reports.resources import Report, ReportFile
12+
from shared.reports.types import ReportLine
1213
from shared.utils.sessions import Session
1314

1415
from utils.test_utils import APIClient

api/public/v2/tests/test_report_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
CommitFactory,
1414
RepositoryFactory,
1515
)
16-
from shared.reports.resources import Report, ReportFile, ReportLine
16+
from shared.reports.resources import Report, ReportFile
17+
from shared.reports.types import ReportLine
1718
from shared.utils.sessions import Session
1819

1920
from services.components import Component

api/public/v2/tests/test_totals_viewset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
OwnerFactory,
1111
RepositoryFactory,
1212
)
13-
from shared.reports.resources import Report, ReportFile, ReportLine
13+
from shared.reports.resources import Report, ReportFile
14+
from shared.reports.types import ReportLine
1415
from shared.utils.sessions import Session
1516

1617
from services.components import Component

compare/commands/compare/interactors/tests/test_fetch_impacted_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
PullFactory,
99
RepositoryFactory,
1010
)
11-
from shared.reports.resources import Report, ReportFile, ReportLine
11+
from shared.reports.resources import Report, ReportFile
12+
from shared.reports.types import ReportLine
1213
from shared.utils.sessions import Session
1314

1415
from compare.commands.compare.interactors.fetch_impacted_files import (

conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import pytest
55
import vcr
66
from django.conf import settings
7-
from shared.reports.resources import Report, ReportFile, ReportLine
7+
from shared.reports.resources import Report, ReportFile
8+
from shared.reports.types import ReportLine
89
from shared.utils.sessions import Session
910

1011
# we need to enable this in the test environment since we're often creating

0 commit comments

Comments
 (0)