Пример #1
0
 def setUp(self):
     GoogleInstalledAppAuthConnection.conn_classes = (GoogleAuthMockHttp,
                                                      GoogleAuthMockHttp)
     self.mock_scopes = ['https://www.googleapis.com/auth/foo']
     kwargs = {'scopes': self.mock_scopes}
     self.conn = GoogleInstalledAppAuthConnection(*GCE_PARAMS,
                                                  **kwargs)
Пример #2
0
 def setUp(self):
     GoogleBaseAuthConnection.conn_classes = (GoogleAuthMockHttp,
                                              GoogleAuthMockHttp)
     self.mock_scopes = ['foo', 'bar']
     kwargs = {'scopes': self.mock_scopes}
     self.conn = GoogleInstalledAppAuthConnection(*GCE_PARAMS,
                                                  **kwargs)
Пример #3
0
 def setUp(self):
     GoogleInstalledAppAuthConnection.conn_class = GoogleAuthMockHttp
     self.mock_scopes = ["https://www.googleapis.com/auth/foo"]
     kwargs = {"scopes": self.mock_scopes}
     self.conn = GoogleInstalledAppAuthConnection(*GCE_PARAMS, **kwargs)
Пример #4
0
 def setUp(self):
     GoogleBaseAuthConnection.conn_class = GoogleAuthMockHttp
     self.mock_scopes = ["foo", "bar"]
     kwargs = {"scopes": self.mock_scopes}
     self.conn = GoogleInstalledAppAuthConnection(*GCE_PARAMS, **kwargs)