Skip to content

Commit 6b57a26

Browse files
committed
Fix tests
1 parent f6d1458 commit 6b57a26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readthedocs/rtd_tests/tests/test_footer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from rest_framework.test import APIRequestFactory, APITestCase
55

66
from readthedocs.api.v2.views.footer_views import (
7-
footer_html,
7+
FooterHTML,
88
get_version_compare_data,
99
)
1010
from readthedocs.builds.constants import BRANCH, LATEST, TAG
@@ -26,7 +26,7 @@ def setUpTestData(cls):
2626

2727
def render(self):
2828
request = self.factory.get(self.url)
29-
response = footer_html(request)
29+
response = FooterHTML.as_view()(request)
3030
response.render()
3131
return response
3232

@@ -243,7 +243,7 @@ def setUp(self):
243243

244244
def render(self):
245245
request = self.factory.get(self.url)
246-
response = footer_html(request)
246+
response = FooterHTML.as_view()(request)
247247
response.render()
248248
return response
249249

0 commit comments

Comments
 (0)