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

Commit 3c8fd4b

Browse files
committed
fix: dedup by computed_name
1 parent e1f7b24 commit 3c8fd4b

File tree

36 files changed

+825
-146
lines changed

36 files changed

+825
-146
lines changed

api/internal/tests/views/test_coverage_viewset.py

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

1716
from services.components import Component

api/public/v2/tests/test_api_component_viewset.py

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

1413
from services.components import Component

api/public/v2/tests/test_file_report_viewset.py

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

1615
from core.models import Branch

api/public/v2/tests/test_flag_viewset.py

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

1413
from reports.tests.factories import RepositoryFlagFactory

api/public/v2/tests/test_report_tree.py

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

1514
from utils.test_utils import APIClient

api/public/v2/tests/test_report_viewset.py

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

2019
from services.components import Component

api/public/v2/tests/test_totals_viewset.py

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

1716
from services.components import Component

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

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

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

conftest.py

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

1110
# we need to enable this in the test environment since we're often creating
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"name": "test1",
4+
"test_id": "test_id1",
5+
"testsuite": [
6+
"testsuite1"
7+
],
8+
"flags": [
9+
"flag1"
10+
],
11+
"failure_rate": 0.1,
12+
"flake_rate": 0.0,
13+
"updated_at": "2024-01-01T00:00:00",
14+
"avg_duration": 100.0,
15+
"total_fail_count": 1,
16+
"total_flaky_fail_count": 1,
17+
"total_pass_count": 1,
18+
"total_skip_count": 1,
19+
"commits_where_fail": 1,
20+
"last_duration": 100.0
21+
}
22+
]

0 commit comments

Comments
 (0)