Skip to content

Commit 4392846

Browse files
authored
Force PUBLIC_DOMAIN_USES_HTTPS on version compare tests (#6367)
Force PUBLIC_DOMAIN_USES_HTTPS on version compare tests
2 parents d55fa6c + 6c760cb commit 4392846

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

readthedocs/rtd_tests/tests/test_footer.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def test_not_show_edit_on_github(self):
118118
@override_settings(
119119
USE_SUBDOMAIN=True,
120120
PUBLIC_DOMAIN='readthedocs.io',
121+
PUBLIC_DOMAIN_USES_HTTPS=True,
121122
)
122123
class TestVersionCompareFooter(TestCase):
123124
fixtures = ['test_data']
@@ -130,7 +131,7 @@ def test_highest_version_from_stable(self):
130131
base_version = self.pip.get_stable_version()
131132
valid_data = {
132133
'project': 'Version 0.8.1 of Pip (19)',
133-
'url': 'http://pip.readthedocs.io/en/0.8.1/',
134+
'url': 'https://pip.readthedocs.io/en/0.8.1/',
134135
'slug': '0.8.1',
135136
'version': '0.8.1',
136137
'is_highest': True,
@@ -142,7 +143,7 @@ def test_highest_version_from_lower(self):
142143
base_version = self.pip.versions.get(slug='0.8')
143144
valid_data = {
144145
'project': 'Version 0.8.1 of Pip (19)',
145-
'url': 'http://pip.readthedocs.io/en/0.8.1/',
146+
'url': 'https://pip.readthedocs.io/en/0.8.1/',
146147
'slug': '0.8.1',
147148
'version': '0.8.1',
148149
'is_highest': False,
@@ -155,7 +156,7 @@ def test_highest_version_from_latest(self):
155156
base_version = self.pip.versions.get(slug=LATEST)
156157
valid_data = {
157158
'project': 'Version 0.8.1 of Pip (19)',
158-
'url': 'http://pip.readthedocs.io/en/0.8.1/',
159+
'url': 'https://pip.readthedocs.io/en/0.8.1/',
159160
'slug': '0.8.1',
160161
'version': '0.8.1',
161162
'is_highest': True,
@@ -184,7 +185,7 @@ def test_highest_version_over_branches(self):
184185
base_version = self.pip.versions.get(slug='0.8.1')
185186
valid_data = {
186187
'project': 'Version 1.0.0 of Pip ({})'.format(version.pk),
187-
'url': 'http://pip.readthedocs.io/en/1.0.0/',
188+
'url': 'https://pip.readthedocs.io/en/1.0.0/',
188189
'slug': '1.0.0',
189190
'version': '1.0.0',
190191
'is_highest': False,
@@ -198,7 +199,7 @@ def test_highest_version_without_tags(self):
198199
base_version = self.pip.versions.get(slug='0.8.1')
199200
valid_data = {
200201
'project': 'Version 0.8.1 of Pip (19)',
201-
'url': 'http://pip.readthedocs.io/en/0.8.1/',
202+
'url': 'https://pip.readthedocs.io/en/0.8.1/',
202203
'slug': '0.8.1',
203204
'version': '0.8.1',
204205
'is_highest': True,
@@ -209,7 +210,7 @@ def test_highest_version_without_tags(self):
209210
base_version = self.pip.versions.get(slug='0.8')
210211
valid_data = {
211212
'project': 'Version 0.8.1 of Pip (19)',
212-
'url': 'http://pip.readthedocs.io/en/0.8.1/',
213+
'url': 'https://pip.readthedocs.io/en/0.8.1/',
213214
'slug': '0.8.1',
214215
'version': '0.8.1',
215216
'is_highest': False,
@@ -227,7 +228,7 @@ def test_highest_version_without_tags(self):
227228
)
228229
valid_data = {
229230
'project': 'Version 2.0.0 of Pip ({})'.format(version.pk),
230-
'url': 'http://pip.readthedocs.io/en/2.0.0/',
231+
'url': 'https://pip.readthedocs.io/en/2.0.0/',
231232
'slug': '2.0.0',
232233
'version': '2.0.0',
233234
'is_highest': False,

0 commit comments

Comments
 (0)