Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
a1d5c26
Tests: Use synchronous endpoint
JelteF Oct 11, 2016
2fa656d
Tests: Make _test_sleep a dummy function
JelteF Oct 11, 2016
56b82e4
Travis: Add caching
JelteF Oct 11, 2016
664e849
Tests: Make feed randomization better
JelteF Oct 11, 2016
200ba0b
Tests: Use more robust method for random postfix
JelteF Oct 11, 2016
4822948
Travis: Remove secrets from yaml file, they're in the project setting…
JelteF Oct 11, 2016
f7f088f
Travis: Add python3.5 to test run
JelteF Oct 11, 2016
0e0f161
Tests: Make clearer what the postfix is
JelteF Oct 11, 2016
aec3864
Revert "Tests: Make _test_sleep a dummy function"
JelteF Oct 12, 2016
aa89a4d
Change api url
JelteF Oct 12, 2016
a31dea2
Tests: Do not use test_sleep anymore
JelteF Oct 12, 2016
1506e43
Tests: Fix test_unique_foreign_id
JelteF Oct 12, 2016
302e789
Tests: Print used feeds for more easy debugging
JelteF Oct 12, 2016
c323058
Tests: Fix time_order test
JelteF Oct 12, 2016
5c938d9
Tests: Fix error that was added when fixing test
JelteF Oct 12, 2016
524e59a
Tests: Fix test_remove_activity_by_foreign_id
JelteF Oct 12, 2016
fcb302a
Tests: Fix test_remove_activity
JelteF Oct 12, 2016
e1e4f38
Tests: Fix test_add_activities_to for new getfeed behaviour
JelteF Oct 12, 2016
22dbadd
Tests: Make test postfixes better unique
JelteF Oct 12, 2016
797d814
Travis: Capture output
JelteF Oct 12, 2016
b5641cb
Tests: Print some extra information in randomly failing tests
JelteF Oct 12, 2016
0a4eccb
Tests: Print some extra information in randomly failing tests
JelteF Oct 13, 2016
87b1e6f
Travis: Add allowed to fail tests for officially unsupported python v…
JelteF Oct 13, 2016
ff96ab7
Travis: use fast_finish
JelteF Oct 13, 2016
f31e8a3
Update tests.py
tbarbugli Oct 14, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,33 @@ python:
- 2.7
- 3.3
- 3.4
- 3.5
# These are allowed to fail
- '3.5-dev' # 3.5 development branch
- '3.6-dev' # 3.6 development branch
- 'nightly' # currently points to 3.7-dev
- 'pypy'
- 'pypy3'

matrix:
fast_finish: true
allow_failures:
- python: '3.5-dev' # 3.5 development branch
- python: '3.6-dev' # 3.6 development branch
- python: 'nightly'
- python: 'pypy'
- python: 'pypy3'

cache: pip
notifications:
email:
- thierryschellenbach@gmail.com
- tbarbugli@gmail.com

env:
secure: G4nELnequtvrwsK0waSmkeikVaF+HSeLgeoM2F8eN22vo92VZKrnz9r0zinBnX/VHGEJ3yNmrQ+XbStb9UuWUL9S23iy/KF2M+f0NbSHsD3iNCuCYCa6c2bQ9O9EjV3NJljXDzJgRCX3UkHq3jueLfx6rXP3Pdhz9FIUhg2F8Ok=
secure: M2XYAJE6WQkhcAtj7W3DMcVH4B9N82JyhTYhABXw4qpmhDEeIO5sJWodkoIKmh+nnWnbY0S6lubk6kcs8OwKk4/YMCbIcZ7iyDCJFwT6kyEwIiGyQ3YZkpwZvF5pWyxga78WgH3snTDnx1d6w5MwrKN5c5jsDpm70vrVxT0BT0U=
install:
- pip install -r dev_requirements.txt
script:
- py.test stream/tests.py -slv --cov stream --cov-report term-missing
- py.test stream/tests.py -lv --cov stream --cov-report term-missing
after_script:
# ensure we validate against pep standards
- "pep8 --exclude=migrations --ignore=E501,E225,W293 stream"
Expand Down
6 changes: 4 additions & 2 deletions stream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
__status__ = 'Production'


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

return StreamClient(api_key, api_secret, app_id, version, timeout, location=location)
return StreamClient(api_key, api_secret, app_id, version, timeout,
location=location, base_url=base_url)
Loading