Skip to content

Commit

Permalink
Remove UploadLevelTotalsFactory
Browse files Browse the repository at this point in the history
This seems to be unused, and should be removed.
  • Loading branch information
Swatinem committed Sep 2, 2024
1 parent b08bc0c commit 0989ae3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
23 changes: 0 additions & 23 deletions core/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def _create(cls, model_class, *args, **kwargs):
ReportLevelTotalsFactory,
UploadFactory,
UploadFlagMembershipFactory,
UploadLevelTotalsFactory,
)

commit_report = CommitReportFactory(commit=commit)
Expand Down Expand Up @@ -129,17 +128,6 @@ def _create(cls, model_class, *args, **kwargs):
order_number=0,
storage_path="v4/raw/2019-01-10/4434BC2A2EC4FCA57F77B473D83F928C/abf6d4df662c47e32460020ab14abf9303581429/9ccc55a1-8b41-4bb1-a946-ee7a33a7fb56.txt",
)
UploadLevelTotalsFactory(
report_session=upload1,
files=3,
lines=20,
hits=17,
misses=3,
partials=0,
coverage=85.0,
branches=0,
methods=0,
)
UploadFlagMembershipFactory(
report_session=upload1,
flag=flag_unittests,
Expand All @@ -150,17 +138,6 @@ def _create(cls, model_class, *args, **kwargs):
order_number=1,
storage_path="v4/raw/2019-01-10/4434BC2A2EC4FCA57F77B473D83F928C/abf6d4df662c47e32460020ab14abf9303581429/9ccc55a1-8b41-4bb1-a946-ee7a33a7fb56.txt",
)
UploadLevelTotalsFactory(
report_session=upload2,
files=3,
lines=20,
hits=17,
misses=3,
partials=0,
coverage=85.0,
branches=0,
methods=0,
)
UploadFlagMembershipFactory(
report_session=upload2,
flag=flag_integrations,
Expand Down
7 changes: 0 additions & 7 deletions reports/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ class Meta:
files = factory.Faker("pyint")


class UploadLevelTotalsFactory(DjangoModelFactory):
class Meta:
model = models.UploadLevelTotals

report_session = factory.SubFactory(UploadFactory)


class ReportDetailsFactory(DjangoModelFactory):
class Meta:
model = models.ReportDetails
Expand Down

0 comments on commit 0989ae3

Please sign in to comment.