Skip to content

Commit 3a9cc21

Browse files
committed
Tests: Use synchronous endpoint
1 parent 39435ef commit 3a9cc21

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎stream/__init__.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
__status__ = 'Production'
1212

1313

14-
def connect(api_key=None, api_secret=None, app_id=None, version='v1.0', timeout=3.0, location=None):
14+
def connect(api_key=None, api_secret=None, app_id=None, version='v1.0',
15+
timeout=3.0, location=None, base_url=None):
1516
'''
1617
Returns a Client object
1718
@@ -32,4 +33,5 @@ def connect(api_key=None, api_secret=None, app_id=None, version='v1.0', timeout=
3233
else:
3334
raise ValueError('Invalid api key or heroku url')
3435

35-
return StreamClient(api_key, api_secret, app_id, version, timeout, location=location)
36+
return StreamClient(api_key, api_secret, app_id, version, timeout,
37+
location=location, base_url=base_url)

‎stream/tests.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def connect_debug():
3737
key,
3838
secret,
3939
location='us-east',
40-
timeout=10
40+
timeout=10,
41+
base_url='http://qa.getstream.io:82/api/',
4142
)
4243

4344
random_postfix = str(int(time.time())) + str(random.randint(0, 1000))

0 commit comments

Comments
 (0)