2
2
from __future__ import print_function
3
3
import re
4
4
5
+ from allauth .socialaccount .models import SocialAccount
5
6
from builtins import object
6
7
from django .contrib .admindocs .views import extract_views_from_urlpatterns
7
8
from django .test import TestCase
@@ -295,6 +296,7 @@ def setUp(self):
295
296
self .domain = get (Domain , url = 'http://docs.foobar.com' , project = self .pip )
296
297
self .comment = get (DocumentComment , node__project = self .pip )
297
298
self .snapshot = get (NodeSnapshot , node = self .comment .node )
299
+ self .social_account = get (SocialAccount )
298
300
self .remote_org = get (RemoteOrganization )
299
301
self .remote_repo = get (RemoteRepository , organization = self .remote_org )
300
302
self .integration = get (Integration , project = self .pip , provider_data = '' )
@@ -314,6 +316,7 @@ def setUp(self):
314
316
'footer_html' : {'data' : {'project' : 'pip' , 'version' : 'latest' , 'page' : 'index' }},
315
317
'remoteorganization-detail' : {'pk' : self .remote_org .pk },
316
318
'remoterepository-detail' : {'pk' : self .remote_repo .pk },
319
+ 'remoteaccount-detail' : {'pk' : self .social_account .pk },
317
320
'api_webhook' : {'integration_pk' : self .integration .pk },
318
321
}
319
322
self .response_data = {
@@ -337,6 +340,7 @@ def setUp(self):
337
340
'api_webhook_generic' : {'status_code' : 403 },
338
341
'remoteorganization-detail' : {'status_code' : 404 },
339
342
'remoterepository-detail' : {'status_code' : 404 },
343
+ 'remoteaccount-detail' : {'status_code' : 404 },
340
344
}
341
345
342
346
0 commit comments