예제 #1
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.insert_key = 'insert_key'
        self.query_key = 'query_key'
        self.service = newrelic.Insights('account_id', self.query_key,
                                         self.insert_key)
예제 #2
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.insert_key = 'insert_key'
        self.query_key = 'query_key'
        self.service = newrelic.Insights('account_id', self.query_key,
                                        self.insert_key)
예제 #3
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = intercom.Intercom('my-app-id', 'my-api-key')
예제 #4
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = spotify.Spotify()
예제 #5
0
 def setUp(self):
     self.executor = test_executor.use()
     self.executor.set_response(
         b'<?xml version="1.0" encoding="UTF-8"?><root/>', 200, {})
     self.service = recurly.Recurly('my-token')
예제 #6
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = flurry.Flurry('my-api-access-code')
예제 #7
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = uservoice.UserVoice('domain', 'key', 'secret', 'token',
                                           'token_secret')
예제 #8
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b"{}", 200, {})

        self.service = zendesk.Zendesk("mydomain", "user", "pass")
예제 #9
0
파일: test_desk.py 프로젝트: runt18/libsaas
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b"{}", 200, {})

        self.service = desk.Desk("domain", "key", "secret", "token", "token_secret")
예제 #10
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = desk.Desk('domain', 'key', 'secret',
                                           'token', 'token_secret')
예제 #11
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = Pardot(api_key_or_email='api_key', user_key='user_key')
예제 #12
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = trello.Trello('my-key', 'my-token')
예제 #13
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = instagram.Instagram(access_token='my-access-token')
예제 #14
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = segmentio.SegmentIO('my-api-secret')
예제 #15
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = pingdom.Pingdom('username', 'password', 'key')
예제 #16
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = pipedrive.Pipedrive('my-api-token')
예제 #17
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = stripe.Stripe('my-api-key')
예제 #18
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = youtube.YouTube('my-access-token')
예제 #19
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b"{}", 200, {})

        self.service = googlecalendar.GoogleCalendar(access_token="my-access-token")
예제 #20
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = zendesk.Zendesk('mydomain', 'user', 'pass')
예제 #21
0
 def setUp(self):
     self.executor = test_executor.use()
     self.executor.set_response(b'{}', 200, {})
     self.service = mixrank.MixRank('api-key')
예제 #22
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = spotify.Spotify()
예제 #23
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'1', 200, {})

        self.service = mixpanel.Mixpanel('my-token', 'api-key', 'api-secret')
예제 #24
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'1', 200, {})

        self.service = mixpanel.Mixpanel('my-token', 'api-key', 'api-secret')
예제 #25
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = fullcontact.Fullcontact('my-api-key')
예제 #26
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = googleoauth2.GoogleOAuth2('id', 'secret')
예제 #27
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = stripe.Stripe('my-api-key')
예제 #28
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = ducksboard.Ducksboard('apikey', 'pass')
예제 #29
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = twilio.Twilio('my-sid', 'my-token')
        self.account = self.service.account('foo')
예제 #30
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = bitly.Bitly('my-access-token')
예제 #31
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = youtube.YouTube('my-access-token')
예제 #32
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = fullcontact.Fullcontact('my-api-key')
예제 #33
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = flurry.Flurry('my-api-access-code')
예제 #34
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = mailchimp.Mailchimp('apikey-us2')
예제 #35
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = googleanalytics.GoogleAnalytics('access_token')
예제 #36
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = googleoauth2.GoogleOAuth2('id', 'secret')
예제 #37
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = trello.Trello('my-key','my-token')
예제 #38
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = compete.Compete('my-api-key')
예제 #39
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = basecamp.Basecamp('my-account-id', 'my-access-token')
예제 #40
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = Pardot(api_key_or_email='api_key',
                              user_key='user_key')
예제 #41
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = mailchimp.Mailchimp('apikey-us2')
예제 #42
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = compete.Compete('my-api-key')
예제 #43
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = newrelic.NewRelic('my_api_key')
예제 #44
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = googleanalytics.GoogleAnalytics('access_token')
예제 #45
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = intercom.Intercom('my-app-id', 'my-api-key')
예제 #46
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = ducksboard.Ducksboard('apikey', 'pass')
예제 #47
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = pipedrive.Pipedrive('my-api-token')
예제 #48
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.api_key = 'test_key'
        self.service = cartodb.CartoDB('mydomain', self.api_key)
예제 #49
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = segmentio.SegmentIO('my-api-secret')
예제 #50
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = newrelic.NewRelic('my_api_key')
예제 #51
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = zendesk.Zendesk('mydomain', 'user', 'pass')
예제 #52
0
 def setUp(self):
     self.executor = test_executor.use()
     self.executor.set_response(b'{}', 200, {})
     self.service = mixrank.MixRank('api-key')
예제 #53
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b"{}", 200, {})

        self.service = instagram.Instagram(access_token="my-access-token")
예제 #54
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = gitlab.Gitlab("https://gitlab.com", 'my-token')
예제 #55
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = github.GitHub('my-token')
예제 #56
0
 def setUp(self):
     self.executor = test_executor.use()
     self.executor.set_response(
         b'<?xml version="1.0" encoding="UTF-8"?><root/>', 200, {})
     self.service = recurly.Recurly('my-token')
예제 #57
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.api_key = 'test_key'
        self.service = cartodb.CartoDB('mydomain', self.api_key)
예제 #58
0
    def setUp(self):
        self.executor = test_executor.use()
        self.executor.set_response(b'{}', 200, {})

        self.service = bitly.Bitly('my-access-token')