コード例 #1
0
    def setUp(self):
        self.app = create_wsgi_app()
        self.app.config['TESTING'] = True

        self.param_kwargs = {
            'username': '******',
            'api_key': '123456789abcdef'
        }
コード例 #2
0
    def setUp(self):
        self.app = create_wsgi_app()
        self.app.config['TESTING'] = True

        self.returned_records = \
            [{'description': 'jane doe registered webhook',
              'event_data': {'message': 'Jane Doe'},
              'epoch': 1441563242.268688,
              'account_id': '04ee97a8-2f77-4117-bc96-fe8a33497c36',
              'id': '069bce36-b2bf-4771-96c5-468eb37665d5',
              'event': 'janedoe.event'},
             {'description': 'john doe registered webhook',
              'event_data': {'message': 'John Doe'},
              'epoch': 1441563242.300409,
              'account_id': 'd382e86c-913d-4a06-abdc-232b963a8f8f',
              'id': '047e549a-24a1-4194-8a41-c56b525cb815',
              'event': 'johndoe.event'},
             {
                 'description': 'leah richards registered webhook',
                 'event_data': {'message': 'Leah Richards'},
                 'epoch': 1441563242.331244,
                 'account_id': '45012169-902e-4d24-80ba-d2f2061baef3',
                 'id': '50e2148f-7b43-4b85-a524-4dc64fc521fc',
                 'event': 'leahrichards.event'}]
コード例 #3
0
    def setUp(self):
        self.app = create_wsgi_app()
        self.app.config['TESTING'] = True

        self.returned_records = \
            [{'description': 'jane doe registered webhook',
              'event_data': {'message': 'Jane Doe'},
              'epoch': 1441563242.268688,
              'account_id': '04ee97a8-2f77-4117-bc96-fe8a33497c36',
              'id': '069bce36-b2bf-4771-96c5-468eb37665d5',
              'event': 'janedoe.event'},
             {'description': 'john doe registered webhook',
              'event_data': {'message': 'John Doe'},
              'epoch': 1441563242.300409,
              'account_id': 'd382e86c-913d-4a06-abdc-232b963a8f8f',
              'id': '047e549a-24a1-4194-8a41-c56b525cb815',
              'event': 'johndoe.event'},
             {
                 'description': 'leah richards registered webhook',
                 'event_data': {'message': 'Leah Richards'},
                 'epoch': 1441563242.331244,
                 'account_id': '45012169-902e-4d24-80ba-d2f2061baef3',
                 'id': '50e2148f-7b43-4b85-a524-4dc64fc521fc',
                 'event': 'leahrichards.event'}]
コード例 #4
0
    def setUp(self):
        self.app = create_wsgi_app()
        self.app.config["TESTING"] = True

        self.param_kwargs = {"username": "******", "api_key": "123456789abcdef"}
コード例 #5
0
ファイル: test_app.py プロジェクト: tobby2002/pywebhooks
 def setUp(self):
     self.app = create_wsgi_app()
     self.app.config['TESTING'] = True
コード例 #6
0
 def setUp(self):
     self.app = create_wsgi_app()
     self.app.config['TESTING'] = True
     self.test_headers = [('api-key', '12345'), ('username', 'johndoe')]
コード例 #7
0
 def setUp(self):
     self.app = create_wsgi_app()
     self.app.config['TESTING'] = True
     self.test_headers = [('api-key', '12345'), ('username', 'johndoe')]