From 94d6331188055ff2a1cafc18e8ae8623a8f508ab Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Sat, 22 Sep 2018 21:35:36 +0200 Subject: [PATCH] Upgrade stripe-mock --- .travis.yml | 2 +- tests/api_resources/issuing/test_dispute.py | 2 +- tests/api_resources/test_file.py | 2 +- tests/api_resources/test_file_upload.py | 2 +- tests/conftest.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index e21444eea..3446d53c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ cache: env: global: # If changing this number, please also change it in `tests/conftest.py`. - - STRIPE_MOCK_VERSION=0.30.0 + - STRIPE_MOCK_VERSION=0.32.0 before_install: # Unpack and start stripe-mock so that the test suite can talk to it diff --git a/tests/api_resources/issuing/test_dispute.py b/tests/api_resources/issuing/test_dispute.py index 9f410506a..940d01602 100644 --- a/tests/api_resources/issuing/test_dispute.py +++ b/tests/api_resources/issuing/test_dispute.py @@ -10,7 +10,7 @@ class TestDispute(object): def test_is_creatable(self, request_mock): resource = stripe.issuing.Dispute.create( reason='fraudulent', - transaction='ipi_123' + disputed_transaction='ipi_123' ) request_mock.assert_requested( 'post', diff --git a/tests/api_resources/test_file.py b/tests/api_resources/test_file.py index d969dbb39..7f601b3df 100644 --- a/tests/api_resources/test_file.py +++ b/tests/api_resources/test_file.py @@ -11,7 +11,7 @@ class TestFile(object): - @pytest.fixture + @pytest.fixture(scope='function') def setup_upload_api_base(self): stripe.upload_api_base = stripe.api_base stripe.api_base = None diff --git a/tests/api_resources/test_file_upload.py b/tests/api_resources/test_file_upload.py index 6c7910e00..57ad5e16e 100644 --- a/tests/api_resources/test_file_upload.py +++ b/tests/api_resources/test_file_upload.py @@ -11,7 +11,7 @@ class TestFileUpload(object): - @pytest.fixture + @pytest.fixture(scope='function') def setup_upload_api_base(self): stripe.upload_api_base = stripe.api_base stripe.api_base = None diff --git a/tests/conftest.py b/tests/conftest.py index 15de12aa7..714b3d5cd 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -13,7 +13,7 @@ from tests.request_mock import RequestMock -MOCK_MINIMUM_VERSION = '0.30.0' +MOCK_MINIMUM_VERSION = '0.32.0' MOCK_PORT = os.environ.get('STRIPE_MOCK_PORT', 12111)