Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override production domain explicitly #6431

Merged
merged 1 commit into from
Dec 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion readthedocs/rtd_tests/tests/test_version.py
Original file line number Diff line number Diff line change
@@ -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