From 2d4b81d10abcec99dd7f0d7aea7dcdaec4df176c Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Mon, 2 Sep 2024 13:41:12 +0200 Subject: [PATCH] Remove `UploadLevelTotalsFactory` This seems to be unused, and it should be removed along with `UploadLevelTotals` --- shared/django_apps/core/tests/factories.py | 23 ------------------- shared/django_apps/reports/tests/factories.py | 7 ------ 2 files changed, 30 deletions(-) diff --git a/shared/django_apps/core/tests/factories.py b/shared/django_apps/core/tests/factories.py index 027bc820..53b9fa86 100644 --- a/shared/django_apps/core/tests/factories.py +++ b/shared/django_apps/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/shared/django_apps/reports/tests/factories.py b/shared/django_apps/reports/tests/factories.py index 27e0b94f..168770fb 100644 --- a/shared/django_apps/reports/tests/factories.py +++ b/shared/django_apps/reports/tests/factories.py @@ -69,13 +69,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