Skip to content

Commit 1d0e2d9

Browse files
committed
Fix tests
1 parent c23a75f commit 1d0e2d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/rtd_tests/tests/test_privacy_urls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from __future__ import print_function
33
import re
44

5+
from allauth.socialaccount.models import SocialAccount
56
from builtins import object
67
from django.contrib.admindocs.views import extract_views_from_urlpatterns
78
from django.test import TestCase
@@ -295,6 +296,7 @@ def setUp(self):
295296
self.domain = get(Domain, url='http://docs.foobar.com', project=self.pip)
296297
self.comment = get(DocumentComment, node__project=self.pip)
297298
self.snapshot = get(NodeSnapshot, node=self.comment.node)
299+
self.social_account = get(SocialAccount)
298300
self.remote_org = get(RemoteOrganization)
299301
self.remote_repo = get(RemoteRepository, organization=self.remote_org)
300302
self.integration = get(Integration, project=self.pip, provider_data='')
@@ -314,6 +316,7 @@ def setUp(self):
314316
'footer_html': {'data': {'project': 'pip', 'version': 'latest', 'page': 'index'}},
315317
'remoteorganization-detail': {'pk': self.remote_org.pk},
316318
'remoterepository-detail': {'pk': self.remote_repo.pk},
319+
'remoteaccount-detail': {'pk': self.social_account.pk},
317320
'api_webhook': {'integration_pk': self.integration.pk},
318321
}
319322
self.response_data = {
@@ -337,6 +340,7 @@ def setUp(self):
337340
'api_webhook_generic': {'status_code': 403},
338341
'remoteorganization-detail': {'status_code': 404},
339342
'remoterepository-detail': {'status_code': 404},
343+
'remoteaccount-detail': {'status_code': 404},
340344
}
341345

342346

0 commit comments

Comments
 (0)