Test: fix archive_builds_task test
from datetime import datetime, timedelta
from unittest import mock
-from django.test import TestCase
+from django.test import TestCase, override_settings
from django.utils import timezone
from django_dynamic_fixture import get
@@ -74,6 +74,7 @@ class TestTasks(TestCase):
self.assertEqual(Version.external.all().count(), 2)
self.assertFalse(Version.objects.filter(slug='external-inactive-old').exists())
+ @override_settings(RTD_SAVE_BUILD_COMMANDS_TO_STORAGE=True)
@mock.patch('readthedocs.builds.tasks.build_commands_storage')
def test_archive_builds(self, build_commands_storage):
project = get(Project)
