15
0
forked from pool/python-stripe
Files
python-stripe/also-skip-streaming.patch
Steve Kowalik a84bc21097 - Update to 7.12.0:
* Add support for new resource `CustomerSession`
  * Add support for `create` method on resource `CustomerSession`
  * Remove support for values `obligation_inbound`,
    `obligation_payout_failure`, `obligation_payout`, and
    `obligation_reversal_outbound` from enum `BalanceTransaction.type`
  * Remove support for value `obligation` from enum
    `Reporting.ReportRunCreateParams.parameters.reporting_category`
  * Mark defunct and internal methods as deprecated
  * Do not raise a DeprecationWarning in `stripe.app_info`
  * Fix __getattr__ to raise AttributeError rather than returning None.
  * Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
  * `stripe.api_version`, `stripe.multipart_data_generator`,
    `stripe.request_metrics` are deprecated.
  * Move resource type exports to stripe.
  * Add support for new resources `Climate.Order`, `Climate.Product`, and
    `Climate.Supplier`
  * Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
    methods on resource `Order`
  * Add support for `exemption_indicator` on resource class
    `Charge.PaymentMethodDetails.Card.ThreeDSecure`
  * Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
  * Add support for Python 3.11/3.12
  * Include `py.typed` and enable type annotations for the package
  * Behavior change: nested json objects will now deserialize into
    instances of specific classes that subclass `StripeObject`.
  * Behavior change: `PromotionCode.restrictions.currency_options` will now
    deserialize into `dict` and not `StripeObject`.
  * This release changes the pinned API version to `2023-10-16`. Please read
    https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00

44 lines
1.9 KiB
Diff

Index: stripe-7.12.0/tests/conftest.py
===================================================================
--- stripe-7.12.0.orig/tests/conftest.py
+++ stripe-7.12.0/tests/conftest.py
@@ -48,9 +48,9 @@ def pytest_addoption(parser):
def pytest_runtest_setup(item):
- if "http_client_mock" in item.fixturenames and item.config.getoption(
- "--nomock"
- ):
+ if (any([f in item.fixturenames
+ for f in ("http_client_mock", "http_client_mock_streaming")]) and
+ item.config.getoption("--nomock")):
pytest.skip(
"run stripe-mock locally and remove --nomock flag to run skipped tests"
)
Index: stripe-7.12.0/tests/api_resources/test_invoice.py
===================================================================
--- stripe-7.12.0.orig/tests/api_resources/test_invoice.py
+++ stripe-7.12.0/tests/api_resources/test_invoice.py
@@ -137,7 +137,7 @@ class TestInvoice(object):
)
assert isinstance(resource, stripe.Invoice)
- def test_can_iterate_lines(self):
+ def test_can_iterate_lines(self, http_client_mock):
resource = stripe.Invoice.retrieve(TEST_RESOURCE_ID)
assert isinstance(resource.lines.data, list)
assert isinstance(resource.lines.data[0], stripe.InvoiceLineItem)
Index: stripe-7.12.0/tests/api_resources/test_invoice_line_item.py
===================================================================
--- stripe-7.12.0.orig/tests/api_resources/test_invoice_line_item.py
+++ stripe-7.12.0/tests/api_resources/test_invoice_line_item.py
@@ -5,7 +5,7 @@ TEST_INVOICE_ID = "in_123"
class TestInvoiceLineItem(object):
- def test_deserialize(self):
+ def test_deserialize(self, http_client_mock):
invoice = stripe.Invoice.retrieve(TEST_INVOICE_ID)
assert isinstance(invoice.lines.data, list)
assert isinstance(invoice.lines.data[0], stripe.InvoiceLineItem)