From 0a739c7dba179876d889a095edd57acf4a954f83 Mon Sep 17 00:00:00 2001 From: Joy Zheng Date: Mon, 29 Jan 2018 09:08:25 -0800 Subject: [PATCH 1/2] Pin requests to >=2.7.0 instead of == --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=[ From d6870e6c6e6e2b09d1c9f4aea1b635f705e9f059 Mon Sep 17 00:00:00 2001 From: Joy Zheng Date: Tue, 30 Jan 2018 10:37:53 -0800 Subject: [PATCH 2/2] Fix up some tests --- tests/integration/test_client.py | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) 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()