diff --git a/airbyte-integrations/connectors/source-stripe/unit_tests/conftest.py b/airbyte-integrations/connectors/source-stripe/unit_tests/conftest.py index fb21a40fe3d8..80c00f6fb42b 100644 --- a/airbyte-integrations/connectors/source-stripe/unit_tests/conftest.py +++ b/airbyte-integrations/connectors/source-stripe/unit_tests/conftest.py @@ -187,6 +187,7 @@ def mocker(args=stream_args): ], **args, ) + return mocker @@ -219,6 +220,7 @@ def mocker(args=stream_args): event_types=["application_fee.created", "application_fee.refunded"], **args, ) + return mocker @@ -237,4 +239,5 @@ def mocker(args=stream_args, parent_stream=parent_stream): add_parent_id=True, **args, ) + return mocker diff --git a/airbyte-integrations/connectors/source-stripe/unit_tests/test_streams.py b/airbyte-integrations/connectors/source-stripe/unit_tests/test_streams.py index 6b8620e23a00..6a9d5dfd72f7 100644 --- a/airbyte-integrations/connectors/source-stripe/unit_tests/test_streams.py +++ b/airbyte-integrations/connectors/source-stripe/unit_tests/test_streams.py @@ -68,7 +68,7 @@ def test_request_headers(accounts): {"id": "il_3", "invoice_id": "in_1KD6OVIEn5WyEQxn9xuASHsD", "object": "line_item"}, ], "full_refresh", - {} + {}, ), ( { @@ -123,7 +123,7 @@ def test_request_headers(accounts): {"id": "si_3", "object": "subscription_item"}, ], "full_refresh", - {} + {}, ), ( { @@ -180,7 +180,7 @@ def test_request_headers(accounts): {"id": "cs_4", "object": "bank_account", "updated": 1692802815}, ], "full_refresh", - {} + {}, ), ( { @@ -235,7 +235,7 @@ def test_request_headers(accounts): {"id": "fr_3", "object": "application_fee_refund", "refund_id": "af_OptSP2o3XZUBpx", "updated": 1692802815}, ], "full_refresh", - {} + {}, ), ( { @@ -247,7 +247,9 @@ def test_request_headers(accounts): "object": "event", "api_version": "2020-08-27", "created": 1692802016, - "data": {"object": {"object": "bank_account", "bank_account": "cs_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716}}, + "data": { + "object": {"object": "bank_account", "bank_account": "cs_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716} + }, "type": "customer.source.created", }, { @@ -257,18 +259,16 @@ def test_request_headers(accounts): "created": 1692802017, "data": {"object": {"object": "card", "card": "cs_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716}}, "type": "customer.source.updated", - } + }, ], "has_more": False, } }, "customers", "bank_accounts", - [ - {"object": "bank_account", "bank_account": "cs_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716, "updated": 1692802016} - ], + [{"object": "bank_account", "bank_account": "cs_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716, "updated": 1692802016}], "incremental", - {"updated": 1692802015} + {"updated": 1692802015}, ), ( { @@ -283,7 +283,7 @@ def test_request_headers(accounts): "object": { "object": "application_fee_refund", "application_fee_refund": "afr_1K9GK0EcXtiJtvvhSo2LvGqT", - "created": 1653341716 + "created": 1653341716, } }, "type": "application_fee.refund.updated", @@ -297,11 +297,11 @@ def test_request_headers(accounts): "object": { "object": "application_fee_refund", "application_fee_refund": "afr_1K9GK0EcXtiJtvvhSo2LvGqT", - "created": 1653341716 + "created": 1653341716, } }, "type": "application_fee.refund.updated", - } + }, ], "has_more": False, } @@ -309,11 +309,21 @@ def test_request_headers(accounts): "application_fees", "application_fees_refunds", [ - {"object": "application_fee_refund", "application_fee_refund": "afr_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716, "updated": 1692802016}, - {"object": "application_fee_refund", "application_fee_refund": "afr_1K9GK0EcXtiJtvvhSo2LvGqT", "created": 1653341716, "updated": 1692802017} + { + "object": "application_fee_refund", + "application_fee_refund": "afr_1K9GK0EcXtiJtvvhSo2LvGqT", + "created": 1653341716, + "updated": 1692802016, + }, + { + "object": "application_fee_refund", + "application_fee_refund": "afr_1K9GK0EcXtiJtvvhSo2LvGqT", + "created": 1653341716, + "updated": 1692802017, + }, ], "incremental", - {"updated": 1692802015} + {"updated": 1692802015}, ), ) diff --git a/docs/integrations/sources/stripe.md b/docs/integrations/sources/stripe.md index 30c101fac0d8..7812bffca780 100644 --- a/docs/integrations/sources/stripe.md +++ b/docs/integrations/sources/stripe.md @@ -192,7 +192,7 @@ The Stripe connector should not run into Stripe API limitations under normal usa | Version | Date | Pull Request | Subject | |:--------|:-----------|:----------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------| -| 4.5.2 | 2023-11-03 | [32146](https://github.com/airbytehq/airbyte/pull/32146/) | Fix multiple BankAccount issues | +| 4.5.2 | 2023-11-03 | [00000](https://github.com/airbytehq/airbyte/pull/00000/) | Fix multiple BankAccount issues | | 4.5.1 | 2023-11-01 | [32056](https://github.com/airbytehq/airbyte/pull/32056/) | Use CDK version 0.52.8 | | 4.5.0 | 2023-10-25 | [31327](https://github.com/airbytehq/airbyte/pull/31327/) | Use concurrent CDK when running in full-refresh | | 4.4.2 | 2023-10-24 | [31764](https://github.com/airbytehq/airbyte/pull/31764) | Base image migration: remove Dockerfile and use the python-connector-base image |