From 0989ae355bbb6b9933c0518221a50df3e20f8394 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Mon, 2 Sep 2024 13:36:50 +0200 Subject: [PATCH] Remove `UploadLevelTotalsFactory` This seems to be unused, and should be removed. --- core/tests/factories.py | 23 ----------------------- reports/tests/factories.py | 7 ------- 2 files changed, 30 deletions(-) diff --git a/core/tests/factories.py b/core/tests/factories.py index fb2a5bfc58..f80ef09ec1 100644 --- a/core/tests/factories.py +++ b/core/tests/factories.py @@ -78,7 +78,6 @@ def _create(cls, model_class, *args, **kwargs): ReportLevelTotalsFactory, UploadFactory, UploadFlagMembershipFactory, - UploadLevelTotalsFactory, ) commit_report = CommitReportFactory(commit=commit) @@ -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, @@ -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, diff --git a/reports/tests/factories.py b/reports/tests/factories.py index 7dac99a159..75140b224f 100644 --- a/reports/tests/factories.py +++ b/reports/tests/factories.py @@ -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