diff --git a/setup.py b/setup.py index 253d817..1c7cc84 100644 --- a/setup.py +++ b/setup.py @@ -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=[ diff --git a/tests/integration/test_client.py b/tests/integration/test_client.py index 216977c..7aede4d 100644 --- a/tests/integration/test_client.py +++ b/tests/integration/test_client.py @@ -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 @@ -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') @@ -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()