MCPcopy
hub / github.com/liangliangyy/DjangoBlog / init_apps

Method init_apps

oauth/tests.py:48–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self.apps = self.init_apps()
47
48 def init_apps(self):
49 applications = [p() for p in BaseOauthManager.__subclasses__()]
50 for application in applications:
51 c = OAuthConfig()
52 c.type = application.ICON_NAME.lower()
53 c.appkey = 'appkey'
54 c.appsecret = 'appsecret'
55 c.save()
56 return applications
57
58 def get_app_by_type(self, type):
59 for app in self.apps:

Callers 1

setUpMethod · 0.95

Calls 2

OAuthConfigClass · 0.90
saveMethod · 0.45

Tested by

no test coverage detected