(self)
| 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: |
no test coverage detected