From 7176a724d1a152ae1b0e0096ff8f9d78c233f998 Mon Sep 17 00:00:00 2001 From: James Kiger Date: Wed, 1 May 2024 08:16:53 -0400 Subject: [PATCH] Code cleanup --- onadata/apps/logger/maintenance_tasks.py | 1 - onadata/apps/logger/tests/models/test_instance.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/onadata/apps/logger/maintenance_tasks.py b/onadata/apps/logger/maintenance_tasks.py index bce591352..0a5ef8f6d 100644 --- a/onadata/apps/logger/maintenance_tasks.py +++ b/onadata/apps/logger/maintenance_tasks.py @@ -1,6 +1,5 @@ from datetime import timedelta -# from django.db.models import QuerySet from django.conf import settings from django.utils import timezone from reversion.models import Revision diff --git a/onadata/apps/logger/tests/models/test_instance.py b/onadata/apps/logger/tests/models/test_instance.py index 6d90802ad..e3fae8948 100644 --- a/onadata/apps/logger/tests/models/test_instance.py +++ b/onadata/apps/logger/tests/models/test_instance.py @@ -129,7 +129,7 @@ def test_reversion(self): self.assertTrue(is_registered(Instance)) @override_settings(KOBOCAT_REVERSION_RETENTION_DAYS=2) - def test_reversion_cleanup(self): + def test_revision_cleanup(self): days_ago_3 = timezone.now() - timedelta(days=3) self._publish_transportation_form()