Skip to content

Commit

Permalink
Override production domain explicitly (#6431)
Browse files Browse the repository at this point in the history
Override production domain explicitly
  • Loading branch information
humitos committed Dec 4, 2019
2 parents ae6aeb5 + 57ddfe1 commit 0359c86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readthedocs/rtd_tests/tests/test_version.py
@@ -1,7 +1,8 @@
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

Expand Down Expand Up @@ -83,6 +84,7 @@ def test_version_does_not_support_wipe(self):
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(), {})

Expand Down

0 comments on commit 0359c86

Please sign in to comment.