Skip to content

Commit d0a3d44

Browse files
Mayank SharmaMayank Sharma
authored andcommitted
path
1 parent 060b1f7 commit d0a3d44

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

raven/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# import ApiClient
77
from raven.api_client import ApiClient
8-
from raven.configuration import Configuration
8+
# from raven.configuration import Configuration
99
# import models into sdk package
1010
from raven.models.attachments import Attachments
1111
from raven.models.data import Data

raven/api/raven_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def __init__(self, api_key=None):
2020
def send_bulk(self, app_id, event, **kwargs):
2121
kwargs['_return_http_data_only'] = True
2222
if kwargs.get('async_req'):
23-
return self.send_bulk_with_http_info(app_id, event, **kwargs)
23+
return self.__send_bulk_with_http_info(app_id, event, **kwargs)
2424
else:
25-
(data) = self.send_bulk_with_http_info(app_id, event, **kwargs)
25+
(data) = self.__send_bulk_with_http_info(app_id, event, **kwargs)
2626
return data
2727

28-
def send_bulk_with_http_info(self, app_id, event, **kwargs):
28+
def __send_bulk_with_http_info(self, app_id, event, **kwargs):
2929

3030
all_params = ['app_id', 'event', 'idempotency_key']
3131
all_params.append('async_req')
@@ -100,12 +100,12 @@ def send(self, app_id, event, **kwargs):
100100

101101
kwargs['_return_http_data_only'] = True
102102
if kwargs.get('async_req'):
103-
return self.send_with_http_info(app_id, event, **kwargs)
103+
return self.__send_with_http_info(app_id, event, **kwargs)
104104
else:
105-
(data) = self.send_with_http_info(app_id, event, **kwargs)
105+
(data) = self.__send_with_http_info(app_id, event, **kwargs)
106106
return data
107107

108-
def send_with_http_info(self, app_id, event, **kwargs):
108+
def __send_with_http_info(self, app_id, event, **kwargs):
109109

110110
all_params = ['app_id', 'event', 'idempotency_key']
111111
all_params.append('async_req')

test/test_event_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from pathlib import Path
12
import unittest
23
import json
34
import uuid
@@ -12,7 +13,7 @@ class TestEventApi(unittest.TestCase):
1213

1314
def setUp(self):
1415
try:
15-
file = open('/home/montooboss/Desktop/INTERN/Raven-2/raven-python/test/testData.json')
16+
file = open(Path().absolute().__str__() + '/test/testData.json')
1617
self.testData = json.load(file)
1718
file.close()
1819
self.client = RavenClient(self.testData['apiKey'])

0 commit comments

Comments
 (0)