Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
license='MIT',
packages=find_packages(exclude='tests'),
package_data={'README': ['README.md']},
install_requires=['requests==2.7.0'],
install_requires=['requests>=2.7.0'],
zip_safe=False,
include_package_data=True,
classifiers=[
Expand Down
24 changes: 2 additions & 22 deletions tests/integration/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_auth_delete():


def test_auth_update():
client = Client('test_id', 'test_secret', access_token='test_amex')
client = Client('test_id', 'test_secret', access_token='test_wells')
response = client.auth_update(no_mfa_credentials)
assert response.status_code == 200

Expand Down Expand Up @@ -163,26 +163,6 @@ def test_income_step():
assert to_json(response)['access_token'] == 'test_chase'


def test_risk_no_mfa():
client = Client('test_id', 'test_secret')
response = client.risk('wells', no_mfa_credentials)
assert to_json(response)['access_token'] == 'test_wells'


def test_risk_mfa():
client = Client('test_id', 'test_secret')
response = client.risk('bofa', no_mfa_credentials)
assert response.status_code == 201
assert to_json(response)['type'] == 'questions'


def test_risk_step():
client = Client('test_id', 'test_secret', access_token='test_chase')
response = client.risk_step('chase', '1234')
assert response.status_code == 200
assert to_json(response)['access_token'] == 'test_chase'


def test_upgrade():
client = Client('test_id', 'test_secret', access_token='test_bofa')
response = client.upgrade('info')
Expand Down Expand Up @@ -304,7 +284,7 @@ def test_institution_search_requires_q_or_id():

def test_UnauthorizedError_bad_token():
client = Client('test_id', 'test_secret', 'test_zoba')
with pytest.raises(UnauthorizedError):
with pytest.raises(ResourceNotFoundError):
client.balance()


Expand Down