Skip to content

Commit 0c4eb98

Browse files
authored
Merge pull request GetStream#48 from GetStream/synchronous
Use synchronous endpoint for tests and fix some of them
2 parents bb0b645 + f31e8a3 commit 0c4eb98

3 files changed

Lines changed: 119 additions & 85 deletions

File tree

‎.travis.yml‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,33 @@ python:
44
- 2.7
55
- 3.3
66
- 3.4
7+
- 3.5
8+
# These are allowed to fail
9+
- '3.5-dev' # 3.5 development branch
10+
- '3.6-dev' # 3.6 development branch
11+
- 'nightly' # currently points to 3.7-dev
12+
- 'pypy'
13+
- 'pypy3'
14+
15+
matrix:
16+
fast_finish: true
17+
allow_failures:
18+
- python: '3.5-dev' # 3.5 development branch
19+
- python: '3.6-dev' # 3.6 development branch
20+
- python: 'nightly'
21+
- python: 'pypy'
22+
- python: 'pypy3'
23+
24+
cache: pip
725
notifications:
826
email:
927
- thierryschellenbach@gmail.com
1028
- tbarbugli@gmail.com
1129

12-
env:
13-
secure: G4nELnequtvrwsK0waSmkeikVaF+HSeLgeoM2F8eN22vo92VZKrnz9r0zinBnX/VHGEJ3yNmrQ+XbStb9UuWUL9S23iy/KF2M+f0NbSHsD3iNCuCYCa6c2bQ9O9EjV3NJljXDzJgRCX3UkHq3jueLfx6rXP3Pdhz9FIUhg2F8Ok=
14-
secure: M2XYAJE6WQkhcAtj7W3DMcVH4B9N82JyhTYhABXw4qpmhDEeIO5sJWodkoIKmh+nnWnbY0S6lubk6kcs8OwKk4/YMCbIcZ7iyDCJFwT6kyEwIiGyQ3YZkpwZvF5pWyxga78WgH3snTDnx1d6w5MwrKN5c5jsDpm70vrVxT0BT0U=
1530
install:
1631
- pip install -r dev_requirements.txt
1732
script:
18-
- py.test stream/tests.py -slv --cov stream --cov-report term-missing
33+
- py.test stream/tests.py -lv --cov stream --cov-report term-missing
1934
after_script:
2035
# ensure we validate against pep standards
2136
- "pep8 --exclude=migrations --ignore=E501,E225,W293 stream"

‎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)

0 commit comments

Comments
 (0)