diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 20929136..d127b30e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.23.0" + ".": "2.23.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b03308dc..0b3f4ce5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 2.23.1 (2025-01-20) + +Full Changelog: [v2.23.0...v2.23.1](https://github.com/orbcorp/orb-python/compare/v2.23.0...v2.23.1) + +### Bug Fixes + +* **tests:** make test_get_platform less flaky ([#500](https://github.com/orbcorp/orb-python/issues/500)) ([1eebaeb](https://github.com/orbcorp/orb-python/commit/1eebaeb04d0b84b36c517b8f64f8fe2e9409dd42)) + + +### Chores + +* **internal:** avoid pytest-asyncio deprecation warning ([#501](https://github.com/orbcorp/orb-python/issues/501)) ([13c0146](https://github.com/orbcorp/orb-python/commit/13c01468044209c5a17321cc7e766dcd3521906c)) +* **internal:** version bump ([#497](https://github.com/orbcorp/orb-python/issues/497)) ([4fdc09b](https://github.com/orbcorp/orb-python/commit/4fdc09bb2d71f1a7a4445c589242f11cbb564414)) + + +### Documentation + +* **raw responses:** fix duplicate `the` ([#499](https://github.com/orbcorp/orb-python/issues/499)) ([27ae2b2](https://github.com/orbcorp/orb-python/commit/27ae2b2b0cd4609a12e553fb588e72bc7e6f84a5)) + ## 2.23.0 (2025-01-18) Full Changelog: [v2.22.0...v2.23.0](https://github.com/orbcorp/orb-python/compare/v2.22.0...v2.23.0) diff --git a/pyproject.toml b/pyproject.toml index 7effcfc0..0697b815 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "orb-billing" -version = "2.23.0" +version = "2.23.1" description = "The official Python library for the orb API" dynamic = ["readme"] license = "Apache-2.0" @@ -129,6 +129,7 @@ testpaths = ["tests"] addopts = "--tb=short" xfail_strict = true asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "session" filterwarnings = [ "error" ] diff --git a/src/orb/_version.py b/src/orb/_version.py index 9f0d9b94..f6803001 100644 --- a/src/orb/_version.py +++ b/src/orb/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "orb" -__version__ = "2.23.0" # x-release-please-version +__version__ = "2.23.1" # x-release-please-version diff --git a/src/orb/resources/alerts.py b/src/orb/resources/alerts.py index f8b5ee06..4a38058d 100644 --- a/src/orb/resources/alerts.py +++ b/src/orb/resources/alerts.py @@ -37,7 +37,7 @@ class Alerts(SyncAPIResource): @cached_property def with_raw_response(self) -> AlertsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -530,7 +530,7 @@ class AsyncAlerts(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncAlertsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/coupons/coupons.py b/src/orb/resources/coupons/coupons.py index 25f16dd1..3deb9fce 100644 --- a/src/orb/resources/coupons/coupons.py +++ b/src/orb/resources/coupons/coupons.py @@ -39,7 +39,7 @@ def subscriptions(self) -> Subscriptions: @cached_property def with_raw_response(self) -> CouponsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -264,7 +264,7 @@ def subscriptions(self) -> AsyncSubscriptions: @cached_property def with_raw_response(self) -> AsyncCouponsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/coupons/subscriptions.py b/src/orb/resources/coupons/subscriptions.py index 84b3cc70..442fe33d 100644 --- a/src/orb/resources/coupons/subscriptions.py +++ b/src/orb/resources/coupons/subscriptions.py @@ -24,7 +24,7 @@ class Subscriptions(SyncAPIResource): @cached_property def with_raw_response(self) -> SubscriptionsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -99,7 +99,7 @@ class AsyncSubscriptions(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncSubscriptionsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/credit_notes.py b/src/orb/resources/credit_notes.py index eb2f8467..cba989c3 100644 --- a/src/orb/resources/credit_notes.py +++ b/src/orb/resources/credit_notes.py @@ -28,7 +28,7 @@ class CreditNotes(SyncAPIResource): @cached_property def with_raw_response(self) -> CreditNotesWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -188,7 +188,7 @@ class AsyncCreditNotes(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncCreditNotesWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/customers/balance_transactions.py b/src/orb/resources/customers/balance_transactions.py index 2ac30eea..5da3caf7 100644 --- a/src/orb/resources/customers/balance_transactions.py +++ b/src/orb/resources/customers/balance_transactions.py @@ -30,7 +30,7 @@ class BalanceTransactions(SyncAPIResource): @cached_property def with_raw_response(self) -> BalanceTransactionsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -191,7 +191,7 @@ class AsyncBalanceTransactions(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncBalanceTransactionsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/customers/costs.py b/src/orb/resources/customers/costs.py index 6e41f3ef..eb349997 100644 --- a/src/orb/resources/customers/costs.py +++ b/src/orb/resources/customers/costs.py @@ -29,7 +29,7 @@ class Costs(SyncAPIResource): @cached_property def with_raw_response(self) -> CostsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -404,7 +404,7 @@ class AsyncCosts(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncCostsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/customers/credits/credits.py b/src/orb/resources/customers/credits/credits.py index 7b27df42..73e13681 100644 --- a/src/orb/resources/customers/credits/credits.py +++ b/src/orb/resources/customers/credits/credits.py @@ -49,7 +49,7 @@ def top_ups(self) -> TopUps: @cached_property def with_raw_response(self) -> CreditsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -212,7 +212,7 @@ def top_ups(self) -> AsyncTopUps: @cached_property def with_raw_response(self) -> AsyncCreditsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/customers/credits/ledger.py b/src/orb/resources/customers/credits/ledger.py index cae16a21..60462510 100644 --- a/src/orb/resources/customers/credits/ledger.py +++ b/src/orb/resources/customers/credits/ledger.py @@ -40,7 +40,7 @@ class Ledger(SyncAPIResource): @cached_property def with_raw_response(self) -> LedgerWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -2179,7 +2179,7 @@ class AsyncLedger(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncLedgerWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/customers/credits/top_ups.py b/src/orb/resources/customers/credits/top_ups.py index 58d7526f..916a4c21 100644 --- a/src/orb/resources/customers/credits/top_ups.py +++ b/src/orb/resources/customers/credits/top_ups.py @@ -36,7 +36,7 @@ class TopUps(SyncAPIResource): @cached_property def with_raw_response(self) -> TopUpsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -419,7 +419,7 @@ class AsyncTopUps(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncTopUpsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/customers/customers.py b/src/orb/resources/customers/customers.py index 12e12b5a..1bc00fad 100644 --- a/src/orb/resources/customers/customers.py +++ b/src/orb/resources/customers/customers.py @@ -70,7 +70,7 @@ def balance_transactions(self) -> BalanceTransactions: @cached_property def with_raw_response(self) -> CustomersWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -968,7 +968,7 @@ def balance_transactions(self) -> AsyncBalanceTransactions: @cached_property def with_raw_response(self) -> AsyncCustomersWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py b/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py index 8d220f77..45ccfd75 100644 --- a/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py +++ b/src/orb/resources/dimensional_price_groups/dimensional_price_groups.py @@ -39,7 +39,7 @@ def external_dimensional_price_group_id(self) -> ExternalDimensionalPriceGroupID @cached_property def with_raw_response(self) -> DimensionalPriceGroupsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -213,7 +213,7 @@ def external_dimensional_price_group_id(self) -> AsyncExternalDimensionalPriceGr @cached_property def with_raw_response(self) -> AsyncDimensionalPriceGroupsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py b/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py index f137f4d3..ac6fd830 100644 --- a/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py +++ b/src/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.py @@ -19,7 +19,7 @@ class ExternalDimensionalPriceGroupID(SyncAPIResource): @cached_property def with_raw_response(self) -> ExternalDimensionalPriceGroupIDWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -75,7 +75,7 @@ class AsyncExternalDimensionalPriceGroupID(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncExternalDimensionalPriceGroupIDWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/events/backfills.py b/src/orb/resources/events/backfills.py index 88134375..b777c9dc 100644 --- a/src/orb/resources/events/backfills.py +++ b/src/orb/resources/events/backfills.py @@ -32,7 +32,7 @@ class Backfills(SyncAPIResource): @cached_property def with_raw_response(self) -> BackfillsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -344,7 +344,7 @@ class AsyncBackfills(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncBackfillsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/events/events.py b/src/orb/resources/events/events.py index fdd0d003..c90bfef1 100644 --- a/src/orb/resources/events/events.py +++ b/src/orb/resources/events/events.py @@ -54,7 +54,7 @@ def volume(self) -> Volume: @cached_property def with_raw_response(self) -> EventsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -603,7 +603,7 @@ def volume(self) -> AsyncVolume: @cached_property def with_raw_response(self) -> AsyncEventsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/events/volume.py b/src/orb/resources/events/volume.py index 28019319..4571731e 100644 --- a/src/orb/resources/events/volume.py +++ b/src/orb/resources/events/volume.py @@ -27,7 +27,7 @@ class Volume(SyncAPIResource): @cached_property def with_raw_response(self) -> VolumeWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -121,7 +121,7 @@ class AsyncVolume(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncVolumeWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/invoice_line_items.py b/src/orb/resources/invoice_line_items.py index 50ecd4c3..82c25b94 100644 --- a/src/orb/resources/invoice_line_items.py +++ b/src/orb/resources/invoice_line_items.py @@ -27,7 +27,7 @@ class InvoiceLineItems(SyncAPIResource): @cached_property def with_raw_response(self) -> InvoiceLineItemsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -117,7 +117,7 @@ class AsyncInvoiceLineItems(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncInvoiceLineItemsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/invoices.py b/src/orb/resources/invoices.py index 6de6a008..3c1f7233 100644 --- a/src/orb/resources/invoices.py +++ b/src/orb/resources/invoices.py @@ -38,7 +38,7 @@ class Invoices(SyncAPIResource): @cached_property def with_raw_response(self) -> InvoicesWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -573,7 +573,7 @@ class AsyncInvoices(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncInvoicesWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/items.py b/src/orb/resources/items.py index 3f211747..8e584391 100644 --- a/src/orb/resources/items.py +++ b/src/orb/resources/items.py @@ -27,7 +27,7 @@ class Items(SyncAPIResource): @cached_property def with_raw_response(self) -> ItemsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -220,7 +220,7 @@ class AsyncItems(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncItemsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/metrics.py b/src/orb/resources/metrics.py index 6621d309..8b78b8c4 100644 --- a/src/orb/resources/metrics.py +++ b/src/orb/resources/metrics.py @@ -28,7 +28,7 @@ class Metrics(SyncAPIResource): @cached_property def with_raw_response(self) -> MetricsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -257,7 +257,7 @@ class AsyncMetrics(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncMetricsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/plans/external_plan_id.py b/src/orb/resources/plans/external_plan_id.py index 61734934..69d7b5b0 100644 --- a/src/orb/resources/plans/external_plan_id.py +++ b/src/orb/resources/plans/external_plan_id.py @@ -26,7 +26,7 @@ class ExternalPlanID(SyncAPIResource): @cached_property def with_raw_response(self) -> ExternalPlanIDWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -157,7 +157,7 @@ class AsyncExternalPlanID(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncExternalPlanIDWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/plans/plans.py b/src/orb/resources/plans/plans.py index 9719f29a..c1ad4691 100644 --- a/src/orb/resources/plans/plans.py +++ b/src/orb/resources/plans/plans.py @@ -41,7 +41,7 @@ def external_plan_id(self) -> ExternalPlanID: @cached_property def with_raw_response(self) -> PlansWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -316,7 +316,7 @@ def external_plan_id(self) -> AsyncExternalPlanID: @cached_property def with_raw_response(self) -> AsyncPlansWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/prices/external_price_id.py b/src/orb/resources/prices/external_price_id.py index 89e6ea24..4fbfe25e 100644 --- a/src/orb/resources/prices/external_price_id.py +++ b/src/orb/resources/prices/external_price_id.py @@ -26,7 +26,7 @@ class ExternalPriceID(SyncAPIResource): @cached_property def with_raw_response(self) -> ExternalPriceIDWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -140,7 +140,7 @@ class AsyncExternalPriceID(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncExternalPriceIDWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/prices/prices.py b/src/orb/resources/prices/prices.py index b1548eee..eaff73b8 100644 --- a/src/orb/resources/prices/prices.py +++ b/src/orb/resources/prices/prices.py @@ -43,7 +43,7 @@ def external_price_id(self) -> ExternalPriceID: @cached_property def with_raw_response(self) -> PricesWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -2611,7 +2611,7 @@ def external_price_id(self) -> AsyncExternalPriceID: @cached_property def with_raw_response(self) -> AsyncPricesWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/subscriptions.py b/src/orb/resources/subscriptions.py index 011a1fe6..b7cc3752 100644 --- a/src/orb/resources/subscriptions.py +++ b/src/orb/resources/subscriptions.py @@ -60,7 +60,7 @@ class Subscriptions(SyncAPIResource): @cached_property def with_raw_response(self) -> SubscriptionsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -2027,7 +2027,7 @@ class AsyncSubscriptions(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncSubscriptionsWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/src/orb/resources/top_level.py b/src/orb/resources/top_level.py index 032d08d4..f0f97129 100644 --- a/src/orb/resources/top_level.py +++ b/src/orb/resources/top_level.py @@ -19,7 +19,7 @@ class TopLevel(SyncAPIResource): @cached_property def with_raw_response(self) -> TopLevelWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers @@ -66,7 +66,7 @@ class AsyncTopLevel(AsyncAPIResource): @cached_property def with_raw_response(self) -> AsyncTopLevelWithRawResponse: """ - This property can be used as a prefix for any HTTP method call to return the + This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content. For more information, see https://www.github.com/orbcorp/orb-python#accessing-raw-response-data-eg-headers diff --git a/tests/test_client.py b/tests/test_client.py index 72ff508e..432310e0 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -6,6 +6,7 @@ import os import sys import json +import time import asyncio import inspect import subprocess @@ -1711,10 +1712,20 @@ async def test_main() -> None: [sys.executable, "-c", test_code], text=True, ) as process: - try: - process.wait(2) - if process.returncode: - raise AssertionError("calling get_platform using asyncify resulted in a non-zero exit code") - except subprocess.TimeoutExpired as e: - process.kill() - raise AssertionError("calling get_platform using asyncify resulted in a hung process") from e + timeout = 10 # seconds + + start_time = time.monotonic() + while True: + return_code = process.poll() + if return_code is not None: + if return_code != 0: + raise AssertionError("calling get_platform using asyncify resulted in a non-zero exit code") + + # success + break + + if time.monotonic() - start_time > timeout: + process.kill() + raise AssertionError("calling get_platform using asyncify resulted in a hung process") + + time.sleep(0.1)