Override production domain explicitly
This fixes tests in .com where it's readthedocs.com instead.
from django.test import TestCase
+from django.test.utils import override_settings
from django_dynamic_fixture import get
-from readthedocs.builds.constants import EXTERNAL, BRANCH, TAG
+from readthedocs.builds.constants import BRANCH, EXTERNAL, TAG
from readthedocs.builds.models import Version
from readthedocs.projects.models import Project
@@ -83,6 +84,7 @@ class TestVersionModel(VersionMixin, TestCase):
def test_version_supports_wipe(self):
self.assertTrue(self.branch_version.supports_wipe)
+ @override_settings(PRODUCTION_DOMAIN='readthedocs.org')
def test_get_downloads(self):
self.assertDictEqual(self.branch_version.get_downloads(), {})
