From 4b08bcecf591dcc5d35dad618d89d806cddab4b8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 18:12:32 +0000 Subject: [PATCH 01/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 36 +++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 242 insertions(+), 242 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6127ab4..451539e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ba5efdf86108ef077f2db1f8a05b84d58f7f218fe2b7e0eb72e3c371cfa30015.yml -openapi_spec_hash: 6c2d47cd85674ece07dc37e471a36ac9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bb6c9c76d967f92637fe23928eed8e2b72857607f7d633cd313edac2159251da.yml +openapi_spec_hash: 6ebbddf9d4240bc9dd02c40ba29fdbbc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index a4e86aa..15f6dfc 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatem", + message_id="et", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="voluptatem", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatem", + message_id="et", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index de76d67..2a8f1b9 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="hic", + list_id="quo", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="hic", + list_id="quo", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="hic", + list_id="quo", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="hic", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="hic", + list_id="quo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 06d474b..cc03657 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="autem", + path_story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="autem", + path_story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="autem", + path_story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="autem", + path_story_id="dolorum", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="autem", + story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="autem", + story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="autem", + story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="autem", + story_id="dolorum", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="autem", + path_story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="autem", + path_story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="autem", + path_story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="autem", + path_story_id="dolorum", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="autem", + story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="autem", + story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="autem", + story_id="dolorum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="autem", + story_id="dolorum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 02cf31a..1ac746d 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "sed", + "molestiae", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "sed", + "molestiae", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "sed", + "molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "sed", + "molestiae", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "sed", + "molestiae", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "sed", + "molestiae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 6d4a3d4..8ace039 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="aut", + auth_id="ut", auth_type="raw_data", - cookies="nihil", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "]%<>fO None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="aut", + auth_id="ut", auth_type="raw_data", - cookies="nihil", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "]%<>fO None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 267abb6..2ddad98 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="dolores", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="dolores", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="autem", + smart_link_id="dolores", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="autem", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="cum", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="cum", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="cum", + smart_link_id="et", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="cum", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="illum", + smart_link_id="aperiam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="fugiat", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="dolores", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="dolores", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="autem", + smart_link_id="dolores", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="autem", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="cum", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="cum", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="cum", + smart_link_id="et", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="cum", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="et", + smart_link_id="minus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 39aab6d..d403d6b 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wawukmfhpsfhwlhgdjcyu", - "tags": ["iizfurnvqqubrcpiuiou"], + "search": "n", + "tags": ["robrlkenzuuyilwiriapl"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wqhvnrc", - "tags": ["uul"], + "search": "cxfmxgnuvmgzz", + "tags": ["webuszxulfanyyotwochcilr"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "pbtzgckzvatqptslffi", - "tags": ["retewknszoajldmmjdmbfwi"], + "include_smart_links": True, + "search": "btwcokorojwzaoqxizeakzns", + "tags": ["gkxa"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "aazxbzoyffqvxas", - "tags": ["mbztc"], + "search": "laebvxpqmkkixmcsarii", + "tags": ["gtevfdxormnpvpkt"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wawukmfhpsfhwlhgdjcyu", - "tags": ["iizfurnvqqubrcpiuiou"], + "search": "n", + "tags": ["robrlkenzuuyilwiriapl"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wqhvnrc", - "tags": ["uul"], + "search": "cxfmxgnuvmgzz", + "tags": ["webuszxulfanyyotwochcilr"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "pbtzgckzvatqptslffi", - "tags": ["retewknszoajldmmjdmbfwi"], + "include_smart_links": True, + "search": "btwcokorojwzaoqxizeakzns", + "tags": ["gkxa"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "aazxbzoyffqvxas", - "tags": ["mbztc"], + "search": "laebvxpqmkkixmcsarii", + "tags": ["gtevfdxormnpvpkt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 41243f2..1a1ba75 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="consectetur", + tracking_link_id="magnam", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ratione", + tracking_link_id="aspernatur", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reiciendis", + tracking_link_id="sapiente", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 2b6fc57..82f021e 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="quisquam", + trial_link_id="non", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="quisquam", + trial_link_id="non", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="quisquam", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="quisquam", + trial_link_id="non", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ut", + trial_link_id="et", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="necessitatibus", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="esse", + trial_link_id="accusantium", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3675e36..109cc35 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="qrruxylgb", + name="xiu", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="qrruxylgb", + name="xiu", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="qrruxylgb", + name="xiu", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="qrruxylgb", + name="xiu", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="qrruxylgb", + name="xiu", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="qrruxylgb", + name="xiu", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="qrruxylgb", + name="xiu", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="qrruxylgb", + name="xiu", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a67bd8b1e7a96890aaf430233e80dcebf94e6aa0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 21:12:32 +0000 Subject: [PATCH 02/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 451539e..83653c0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bb6c9c76d967f92637fe23928eed8e2b72857607f7d633cd313edac2159251da.yml -openapi_spec_hash: 6ebbddf9d4240bc9dd02c40ba29fdbbc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a141a23e1d1a4c59fa2127c4504251e3605fe9a38aeee763f8611011acb605da.yml +openapi_spec_hash: 6101f498e1ca4c1ee4c2e8549805ae03 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfc..db7dbcc 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="neque", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="et", + message_id="neque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="neque", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 2a8f1b9..8cd5c29 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="tempora", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="tempora", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="tempora", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quo", + list_id="tempora", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="tempora", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 297ac0a..fce9487 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="dicta", + post_id="quibusdam", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="dicta", + post_id="quibusdam", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="dicta", + post_id="quibusdam", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="dicta", + post_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="dicta", + post_id="quibusdam", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index cc03657..506c2ed 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="dolorum", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="dolorum", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="dolorum", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="dolorum", + path_story_id="et", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="dolorum", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="dolorum", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="dolorum", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="dolorum", + story_id="et", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="dolorum", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="dolorum", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="dolorum", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="dolorum", + path_story_id="et", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="dolorum", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="dolorum", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="dolorum", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="dolorum", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 1ac746d..5523012 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "molestiae", + "molestias", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "molestiae", + "molestias", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "molestiae", + "molestias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "molestiae", + "molestias", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "molestiae", + "molestias", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "molestiae", + "molestias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 8ace039..00b32ed 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="ut", - auth_type="raw_data", - cookies="et", + auth_id="ipsum", + auth_type="email_password", + cookies="magni", custom_proxy={ "host": "proxy.example.com", - "password": "PD_]{TC`Vc", + "password": "K|dJh:q{\\L", "port": 8080, - "username": "ex", + "username": "et", }, - email="oturcotte@example.org", - force_connect=False, - name="et", - password="s!pWrryhs*-_$s", - proxy_country="uk", - user_agent="ipsa", - xbc="totam", + email="rowland.mckenzie@example.com", + force_connect=True, + name="soluta", + password=")H$BE+t3mGdm", + proxy_country="us", + user_agent="et", + xbc="omnis", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="ut", - auth_type="raw_data", - cookies="et", + auth_id="ipsum", + auth_type="email_password", + cookies="magni", custom_proxy={ "host": "proxy.example.com", - "password": "PD_]{TC`Vc", + "password": "K|dJh:q{\\L", "port": 8080, - "username": "ex", + "username": "et", }, - email="oturcotte@example.org", - force_connect=False, - name="et", - password="s!pWrryhs*-_$s", - proxy_country="uk", - user_agent="ipsa", - xbc="totam", + email="rowland.mckenzie@example.com", + force_connect=True, + name="soluta", + password=")H$BE+t3mGdm", + proxy_country="us", + user_agent="et", + xbc="omnis", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 2ddad98..e63ca97 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sint", + smart_link_id="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sint", + smart_link_id="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="sint", + smart_link_id="sit", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sint", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="sint", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="sint", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="et", + smart_link_id="sint", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="et", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aperiam", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sint", + smart_link_id="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sint", + smart_link_id="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="sint", + smart_link_id="sit", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sint", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="dolores", + smart_link_id="fuga", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="sint", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="sint", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="et", + smart_link_id="sint", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="et", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="laborum", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="minus", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index d403d6b..0748793 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "n", - "tags": ["robrlkenzuuyilwiriapl"], + "search": "wgokmzkx", + "tags": ["upnmn"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cxfmxgnuvmgzz", - "tags": ["webuszxulfanyyotwochcilr"], + "search": "mxkqworbsdo", + "tags": ["loywfzxobliicgv"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "btwcokorojwzaoqxizeakzns", - "tags": ["gkxa"], + "search": "zvulqsycivflpntg", + "tags": ["mhoa"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "laebvxpqmkkixmcsarii", - "tags": ["gtevfdxormnpvpkt"], + "search": "bckyfto", + "tags": ["lksqgydptkqtnwudqd"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "n", - "tags": ["robrlkenzuuyilwiriapl"], + "search": "wgokmzkx", + "tags": ["upnmn"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cxfmxgnuvmgzz", - "tags": ["webuszxulfanyyotwochcilr"], + "search": "mxkqworbsdo", + "tags": ["loywfzxobliicgv"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "btwcokorojwzaoqxizeakzns", - "tags": ["gkxa"], + "search": "zvulqsycivflpntg", + "tags": ["mhoa"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "laebvxpqmkkixmcsarii", - "tags": ["gtevfdxormnpvpkt"], + "search": "bckyfto", + "tags": ["lksqgydptkqtnwudqd"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 1a1ba75..5eaa093 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="magnam", + tracking_link_id="consequuntur", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="aspernatur", + tracking_link_id="temporibus", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sapiente", + tracking_link_id="optio", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 82f021e..595b711 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="dicta", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="dicta", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="non", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="dicta", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="labore", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="necessitatibus", + trial_link_id="perferendis", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="accusantium", + trial_link_id="dolorem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 109cc35..8a17751 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xiu", + name="sbnkuvjffglby", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xiu", + name="sbnkuvjffglby", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xiu", + name="sbnkuvjffglby", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="xiu", + name="sbnkuvjffglby", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xiu", + name="sbnkuvjffglby", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xiu", + name="sbnkuvjffglby", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xiu", + name="sbnkuvjffglby", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="xiu", + name="sbnkuvjffglby", ) @pytest.mark.skip(reason="Mock server tests are disabled") From d22aec4906882366899e5bef242bc1a6ca3ca7d6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 22:12:30 +0000 Subject: [PATCH 03/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 83653c0..8dfea49 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a141a23e1d1a4c59fa2127c4504251e3605fe9a38aeee763f8611011acb605da.yml -openapi_spec_hash: 6101f498e1ca4c1ee4c2e8549805ae03 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1b67389b2df8ca06af07c65230cc567230a17ff873b2d7ced3200a0ad273c6f.yml +openapi_spec_hash: 94a721ac564ca20530c4a60d4ddde14a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index db7dbcc..c566959 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="neque", + message_id="temporibus", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="neque", + message_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="neque", + message_id="temporibus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 8cd5c29..3130954 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="tempora", + list_id="maxime", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="tempora", + list_id="maxime", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="tempora", + list_id="maxime", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="tempora", + list_id="maxime", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="tempora", + list_id="maxime", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fce9487..20d1221 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="quibusdam", + post_id="qui", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="quibusdam", + post_id="qui", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="quibusdam", + post_id="qui", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="quibusdam", + post_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="quibusdam", + post_id="qui", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 506c2ed..5b3b61a 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="et", + path_story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="et", + path_story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="totam", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="et", + story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="et", + story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="totam", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="et", + path_story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="et", + path_story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="totam", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="et", + story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="et", + story_id="totam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="totam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5523012..e086553 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "molestias", + "rerum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "molestias", + "rerum", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "molestias", + "rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "molestias", + "rerum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "molestias", + "rerum", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "molestias", + "rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 00b32ed..838665c 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="ipsum", + auth_id="ut", auth_type="email_password", - cookies="magni", + cookies="eos", custom_proxy={ "host": "proxy.example.com", - "password": "K|dJh:q{\\L", + "password": "\\wQJm2_k!", "port": 8080, - "username": "et", + "username": "molestiae", }, - email="rowland.mckenzie@example.com", - force_connect=True, - name="soluta", - password=")H$BE+t3mGdm", - proxy_country="us", - user_agent="et", - xbc="omnis", + email="goodwin.emelie@example.net", + force_connect=False, + name="blanditiis", + password="=>vw@`", + proxy_country="uk", + user_agent="beatae", + xbc="aut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="ipsum", + auth_id="ut", auth_type="email_password", - cookies="magni", + cookies="eos", custom_proxy={ "host": "proxy.example.com", - "password": "K|dJh:q{\\L", + "password": "\\wQJm2_k!", "port": 8080, - "username": "et", + "username": "molestiae", }, - email="rowland.mckenzie@example.com", - force_connect=True, - name="soluta", - password=")H$BE+t3mGdm", - proxy_country="us", - user_agent="et", - xbc="omnis", + email="goodwin.emelie@example.net", + force_connect=False, + name="blanditiis", + password="=>vw@`", + proxy_country="uk", + user_agent="beatae", + xbc="aut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index e63ca97..4714097 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="ut", + smart_link_id="et", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="ut", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="quis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="quis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="sit", + smart_link_id="quis", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sit", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="ut", + smart_link_id="et", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="ut", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="quis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="quis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="sit", + smart_link_id="quis", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sit", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="fuga", + smart_link_id="architecto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sint", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="esse", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="provident", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 0748793..3156eb9 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wgokmzkx", - "tags": ["upnmn"], + "search": "lwpcenswpzaxiqbb", + "tags": ["lnkq"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "mxkqworbsdo", - "tags": ["loywfzxobliicgv"], + "search": "hbxfq", + "tags": ["kgtbtuhxf"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "zvulqsycivflpntg", - "tags": ["mhoa"], + "include_smart_links": False, + "search": "ychtqaqt", + "tags": ["wjbgftojjektuegjzvet"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "bckyfto", - "tags": ["lksqgydptkqtnwudqd"], + "include_smart_links": True, + "search": "ybpunrmnmcjnh", + "tags": ["txrtu"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wgokmzkx", - "tags": ["upnmn"], + "search": "lwpcenswpzaxiqbb", + "tags": ["lnkq"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "mxkqworbsdo", - "tags": ["loywfzxobliicgv"], + "search": "hbxfq", + "tags": ["kgtbtuhxf"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "zvulqsycivflpntg", - "tags": ["mhoa"], + "include_smart_links": False, + "search": "ychtqaqt", + "tags": ["wjbgftojjektuegjzvet"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "bckyfto", - "tags": ["lksqgydptkqtnwudqd"], + "include_smart_links": True, + "search": "ybpunrmnmcjnh", + "tags": ["txrtu"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 5eaa093..2fd49d8 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="consequuntur", + tracking_link_id="praesentium", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="temporibus", + tracking_link_id="quod", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="optio", + tracking_link_id="maiores", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 595b711..3f21ba6 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="eius", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="eius", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="dicta", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="eius", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="similique", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perferendis", + trial_link_id="ut", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorem", + trial_link_id="impedit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 8a17751..4ee42dd 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="sbnkuvjffglby", + name="j", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="sbnkuvjffglby", + name="j", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="sbnkuvjffglby", + name="j", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="sbnkuvjffglby", + name="j", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="sbnkuvjffglby", + name="j", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="sbnkuvjffglby", + name="j", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="sbnkuvjffglby", + name="j", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="sbnkuvjffglby", + name="j", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f2f2094213516b1f79af9f22dc03a84a2a074a1a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 23:12:36 +0000 Subject: [PATCH 04/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8dfea49..8b97f93 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1b67389b2df8ca06af07c65230cc567230a17ff873b2d7ced3200a0ad273c6f.yml -openapi_spec_hash: 94a721ac564ca20530c4a60d4ddde14a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1694e31822508757f6dec4837f9442d42a1eafdf796b6f4ff368c80452050acf.yml +openapi_spec_hash: 19fc90cabcac5a299d832b80e7518648 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c566959..0c12a4f 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="temporibus", + message_id="cupiditate", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3130954..370ff89 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="maxime", + list_id="molestiae", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="maxime", + list_id="molestiae", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="maxime", + list_id="molestiae", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="maxime", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="maxime", + list_id="molestiae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 20d1221..47693a2 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="qui", + post_id="alias", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="qui", + post_id="alias", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="qui", + post_id="alias", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="qui", + post_id="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="qui", + post_id="alias", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 5b3b61a..640a7fe 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="totam", + path_story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="totam", + path_story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="totam", + path_story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="totam", + path_story_id="debitis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="totam", + story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="totam", + story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="totam", + story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="totam", + story_id="debitis", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="totam", + path_story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="totam", + path_story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="totam", + path_story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="totam", + path_story_id="debitis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="totam", + story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="totam", + story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="totam", + story_id="debitis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="totam", + story_id="debitis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e086553..3fd0e53 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "rerum", + "omnis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "rerum", + "omnis", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "rerum", + "omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "rerum", + "omnis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "rerum", + "omnis", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "rerum", + "omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 838665c..862256c 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="ut", - auth_type="email_password", - cookies="eos", + auth_id="dolor", + auth_type="raw_data", + cookies="illum", custom_proxy={ "host": "proxy.example.com", - "password": "\\wQJm2_k!", + "password": "QpR[^*m8dYw`fV>pDzM_", "port": 8080, - "username": "molestiae", + "username": "autem", }, - email="goodwin.emelie@example.net", - force_connect=False, - name="blanditiis", - password="=>vw@`", + email="verna30@example.com", + force_connect=True, + name="dolor", + password="2!GY_AJ/#V,.u.zBK*", proxy_country="uk", - user_agent="beatae", - xbc="aut", + user_agent="temporibus", + xbc="consequuntur", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="ut", - auth_type="email_password", - cookies="eos", + auth_id="dolor", + auth_type="raw_data", + cookies="illum", custom_proxy={ "host": "proxy.example.com", - "password": "\\wQJm2_k!", + "password": "QpR[^*m8dYw`fV>pDzM_", "port": 8080, - "username": "molestiae", + "username": "autem", }, - email="goodwin.emelie@example.net", - force_connect=False, - name="blanditiis", - password="=>vw@`", + email="verna30@example.com", + force_connect=True, + name="dolor", + password="2!GY_AJ/#V,.u.zBK*", proxy_country="uk", - user_agent="beatae", - xbc="aut", + user_agent="temporibus", + xbc="consequuntur", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..0f3980c 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 4714097..1a3cd05 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="similique", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="similique", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="et", + smart_link_id="similique", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="et", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="quis", + smart_link_id="eius", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="quis", + smart_link_id="eius", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="quis", + smart_link_id="eius", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="quis", + smart_link_id="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="similique", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="similique", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="et", + smart_link_id="similique", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="et", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="quis", + smart_link_id="eius", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="quis", + smart_link_id="eius", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="quis", + smart_link_id="eius", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="quis", + smart_link_id="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="architecto", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sunt", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="ut", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="vel", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 3156eb9..f5d577e 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lwpcenswpzaxiqbb", - "tags": ["lnkq"], + "search": "dzyhrdiys", + "tags": ["stufjrdubhtm"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "hbxfq", - "tags": ["kgtbtuhxf"], + "search": "wcelcquoagyytiuqihigy", + "tags": ["rbkozjjhfhlitkmzlqyqlx"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "ychtqaqt", - "tags": ["wjbgftojjektuegjzvet"], + "search": "bkfibbf", + "tags": ["dzjukcw"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "ybpunrmnmcjnh", - "tags": ["txrtu"], + "include_smart_links": False, + "search": "colpleimdkebqvya", + "tags": ["fzp"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lwpcenswpzaxiqbb", - "tags": ["lnkq"], + "search": "dzyhrdiys", + "tags": ["stufjrdubhtm"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "hbxfq", - "tags": ["kgtbtuhxf"], + "search": "wcelcquoagyytiuqihigy", + "tags": ["rbkozjjhfhlitkmzlqyqlx"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "ychtqaqt", - "tags": ["wjbgftojjektuegjzvet"], + "search": "bkfibbf", + "tags": ["dzjukcw"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "ybpunrmnmcjnh", - "tags": ["txrtu"], + "include_smart_links": False, + "search": "colpleimdkebqvya", + "tags": ["fzp"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2fd49d8..d0845c4 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="praesentium", + tracking_link_id="minima", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="praesentium", + tracking_link_id="minima", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quod", + tracking_link_id="est", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maiores", + tracking_link_id="sed", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 3f21ba6..bf9dff4 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="eius", + trial_link_id="mollitia", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="eius", + trial_link_id="mollitia", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="molestiae", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ut", + trial_link_id="velit", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="impedit", + trial_link_id="est", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4ee42dd..94a7502 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="j", + name="mmryoeohbatuj", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="j", + name="mmryoeohbatuj", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="j", + name="mmryoeohbatuj", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="j", + name="mmryoeohbatuj", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="j", + name="mmryoeohbatuj", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="j", + name="mmryoeohbatuj", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="j", + name="mmryoeohbatuj", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="j", + name="mmryoeohbatuj", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2b072d1cb4c48b00c3cd66616334e9edd580899d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 00:12:32 +0000 Subject: [PATCH 05/48] feat(api): api update --- .stats.yml | 4 +- api.md | 4 +- src/onlyfansapi/resources/media/media.py | 24 ++--- src/onlyfansapi/types/__init__.py | 1 - .../types/media_download_response.py | 7 -- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_media.py | 17 ++-- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 20 files changed, 284 insertions(+), 293 deletions(-) delete mode 100644 src/onlyfansapi/types/media_download_response.py diff --git a/.stats.yml b/.stats.yml index 8b97f93..e403fe0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1694e31822508757f6dec4837f9442d42a1eafdf796b6f4ff368c80452050acf.yml -openapi_spec_hash: 19fc90cabcac5a299d832b80e7518648 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-66432b705e73f5f3a80162c5a91d4f4f3216319c075d1e6491b80e0ec7c3a0bc.yml +openapi_spec_hash: ae75154ff3e4cad180cd49f21f7c3edf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/api.md b/api.md index f704b20..88b2b58 100644 --- a/api.md +++ b/api.md @@ -520,12 +520,12 @@ Methods: Types: ```python -from onlyfansapi.types import MediaDownloadResponse, MediaScrapeResponse, MediaUploadResponse +from onlyfansapi.types import MediaScrapeResponse, MediaUploadResponse ``` Methods: -- client.media.download(cdn_url, \*, account) -> str +- client.media.download(cdn_url, \*, account) -> None - client.media.scrape(account, \*\*params) -> MediaScrapeResponse - client.media.upload(account, \*\*params) -> MediaUploadResponse diff --git a/src/onlyfansapi/resources/media/media.py b/src/onlyfansapi/resources/media/media.py index cc9894e..d918af4 100644 --- a/src/onlyfansapi/resources/media/media.py +++ b/src/onlyfansapi/resources/media/media.py @@ -17,7 +17,7 @@ AsyncUploadsResourceWithStreamingResponse, ) from ..._files import deepcopy_with_paths -from ..._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given +from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, FileTypes, omit, not_given from ..._utils import extract_files, path_template, maybe_transform, async_maybe_transform from ..._compat import cached_property from ..._resource import SyncAPIResource, AsyncAPIResource @@ -81,14 +81,15 @@ def download( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> str: + ) -> None: """Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the file is already cached on our CDN, this endpoint returns a `302` redirect to a `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects - automatically (`curl` requires `-L`). Otherwise, the file is streamed through - our proxies and queued for caching. + automatically (`curl` requires `-L`). Otherwise, the file is redirected to + `dl.fansapi.com`, which streams it through the account proxy and reports billing + back to the API. Args: extra_headers: Send extra headers @@ -103,13 +104,13 @@ def download( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") if not cdn_url: raise ValueError(f"Expected a non-empty value for `cdn_url` but received {cdn_url!r}") - extra_headers = {"Accept": "text/plain", **(extra_headers or {})} + extra_headers = {"Accept": "*/*", **(extra_headers or {})} return self._get( path_template("/api/{account}/media/download/{cdn_url}", account=account, cdn_url=cdn_url), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=str, + cast_to=NoneType, ) def scrape( @@ -285,14 +286,15 @@ async def download( extra_query: Query | None = None, extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, - ) -> str: + ) -> None: """Downloads a file directly from a `https://cdn*.onlyfans.com/*` URL. When the file is already cached on our CDN, this endpoint returns a `302` redirect to a `https://cdn.fansapi.com/*` URL. Most HTTP clients follow redirects - automatically (`curl` requires `-L`). Otherwise, the file is streamed through - our proxies and queued for caching. + automatically (`curl` requires `-L`). Otherwise, the file is redirected to + `dl.fansapi.com`, which streams it through the account proxy and reports billing + back to the API. Args: extra_headers: Send extra headers @@ -307,13 +309,13 @@ async def download( raise ValueError(f"Expected a non-empty value for `account` but received {account!r}") if not cdn_url: raise ValueError(f"Expected a non-empty value for `cdn_url` but received {cdn_url!r}") - extra_headers = {"Accept": "text/plain", **(extra_headers or {})} + extra_headers = {"Accept": "*/*", **(extra_headers or {})} return await self._get( path_template("/api/{account}/media/download/{cdn_url}", account=account, cdn_url=cdn_url), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), - cast_to=str, + cast_to=NoneType, ) async def scrape( diff --git a/src/onlyfansapi/types/__init__.py b/src/onlyfansapi/types/__init__.py index 6d3ddf1..01bb12a 100644 --- a/src/onlyfansapi/types/__init__.py +++ b/src/onlyfansapi/types/__init__.py @@ -66,7 +66,6 @@ from .user_retrieve_response import UserRetrieveResponse as UserRetrieveResponse from .data_export_list_params import DataExportListParams as DataExportListParams from .fan_list_expired_params import FanListExpiredParams as FanListExpiredParams -from .media_download_response import MediaDownloadResponse as MediaDownloadResponse from .post_unarchive_response import PostUnarchiveResponse as PostUnarchiveResponse from .profile_retrieve_params import ProfileRetrieveParams as ProfileRetrieveParams from .promotion_create_params import PromotionCreateParams as PromotionCreateParams diff --git a/src/onlyfansapi/types/media_download_response.py b/src/onlyfansapi/types/media_download_response.py deleted file mode 100644 index 8b95a30..0000000 --- a/src/onlyfansapi/types/media_download_response.py +++ /dev/null @@ -1,7 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing_extensions import TypeAlias - -__all__ = ["MediaDownloadResponse"] - -MediaDownloadResponse: TypeAlias = str diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0c12a4f..f82e99b 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="cupiditate", + message_id="modi", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 370ff89..8c83f1a 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="autem", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="autem", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="autem", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="molestiae", + list_id="autem", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="autem", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 47693a2..aecad2b 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="alias", + post_id="assumenda", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="alias", + post_id="assumenda", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="alias", + post_id="assumenda", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="alias", + post_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="alias", + post_id="assumenda", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=6, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 640a7fe..97b2e5f 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="debitis", + path_story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="debitis", + path_story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="debitis", + path_story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="debitis", + path_story_id="quidem", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="debitis", + story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="debitis", + story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="debitis", + story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="debitis", + story_id="quidem", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="debitis", + path_story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="debitis", + path_story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="debitis", + path_story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="debitis", + path_story_id="quidem", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="debitis", + story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="debitis", + story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="debitis", + story_id="quidem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="debitis", + story_id="quidem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 3fd0e53..055f9d1 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "omnis", + "ut", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "omnis", + "ut", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "omnis", + "ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "omnis", + "ut", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "omnis", + "ut", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "omnis", + "ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 862256c..78984ca 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="dolor", - auth_type="raw_data", - cookies="illum", + auth_id="voluptas", + auth_type="mobile_app", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "QpR[^*m8dYw`fV>pDzM_", + "password": "qS*N*uL_", "port": 8080, - "username": "autem", + "username": "voluptatibus", }, - email="verna30@example.com", + email="triston96@example.org", force_connect=True, - name="dolor", - password="2!GY_AJ/#V,.u.zBK*", + name="laborum", + password="z|4Hba!J*[1tY", proxy_country="uk", - user_agent="temporibus", - xbc="consequuntur", + user_agent="ut", + xbc="exercitationem", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="dolor", - auth_type="raw_data", - cookies="illum", + auth_id="voluptas", + auth_type="mobile_app", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "QpR[^*m8dYw`fV>pDzM_", + "password": "qS*N*uL_", "port": 8080, - "username": "autem", + "username": "voluptatibus", }, - email="verna30@example.com", + email="triston96@example.org", force_connect=True, - name="dolor", - password="2!GY_AJ/#V,.u.zBK*", + name="laborum", + password="z|4Hba!J*[1tY", proxy_country="uk", - user_agent="temporibus", - xbc="consequuntur", + user_agent="ut", + xbc="exercitationem", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_media.py b/tests/api_resources/test_media.py index 3bba819..75dab9a 100644 --- a/tests/api_resources/test_media.py +++ b/tests/api_resources/test_media.py @@ -9,10 +9,7 @@ from onlyfansapi import OnlyFansAPI, AsyncOnlyFansAPI from tests.utils import assert_matches_type -from onlyfansapi.types import ( - MediaScrapeResponse, - MediaUploadResponse, -) +from onlyfansapi.types import MediaScrapeResponse, MediaUploadResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -27,7 +24,7 @@ def test_method_download(self, client: OnlyFansAPI) -> None: cdn_url="cdnUrl", account="acct_XXXXXXXXXXXXXXX", ) - assert_matches_type(str, media, path=["response"]) + assert media is None @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -40,7 +37,7 @@ def test_raw_response_download(self, client: OnlyFansAPI) -> None: assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media = response.parse() - assert_matches_type(str, media, path=["response"]) + assert media is None @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -53,7 +50,7 @@ def test_streaming_response_download(self, client: OnlyFansAPI) -> None: assert response.http_request.headers.get("X-Stainless-Lang") == "python" media = response.parse() - assert_matches_type(str, media, path=["response"]) + assert media is None assert cast(Any, response.is_closed) is True @@ -194,7 +191,7 @@ async def test_method_download(self, async_client: AsyncOnlyFansAPI) -> None: cdn_url="cdnUrl", account="acct_XXXXXXXXXXXXXXX", ) - assert_matches_type(str, media, path=["response"]) + assert media is None @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -207,7 +204,7 @@ async def test_raw_response_download(self, async_client: AsyncOnlyFansAPI) -> No assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" media = await response.parse() - assert_matches_type(str, media, path=["response"]) + assert media is None @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize @@ -220,7 +217,7 @@ async def test_streaming_response_download(self, async_client: AsyncOnlyFansAPI) assert response.http_request.headers.get("X-Stainless-Lang") == "python" media = await response.parse() - assert_matches_type(str, media, path=["response"]) + assert media is None assert cast(Any, response.is_closed) is True diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c..b215885 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="tips", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="tips", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 1a3cd05..aeadae2 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="delectus", + smart_link_id="officia", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="delectus", + smart_link_id="officia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="delectus", + smart_link_id="officia", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="delectus", + smart_link_id="officia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="similique", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="eius", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="delectus", + smart_link_id="officia", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="delectus", + smart_link_id="officia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="delectus", + smart_link_id="officia", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="delectus", + smart_link_id="officia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ullam", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="nulla", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="ut", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index f5d577e..161714d 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "dzyhrdiys", - "tags": ["stufjrdubhtm"], + "search": "lw", + "tags": ["hbmsfbiiqpohllcshysjbodco"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wcelcquoagyytiuqihigy", - "tags": ["rbkozjjhfhlitkmzlqyqlx"], + "search": "va", + "tags": ["uhyqd"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "bkfibbf", - "tags": ["dzjukcw"], + "search": "wpgkmzjjxf", + "tags": ["bst"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "colpleimdkebqvya", - "tags": ["fzp"], + "include_smart_links": True, + "search": "xrrhmdkfvdhufa", + "tags": ["owogdbrrtuvvuhpjqdyblwy"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "dzyhrdiys", - "tags": ["stufjrdubhtm"], + "search": "lw", + "tags": ["hbmsfbiiqpohllcshysjbodco"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wcelcquoagyytiuqihigy", - "tags": ["rbkozjjhfhlitkmzlqyqlx"], + "search": "va", + "tags": ["uhyqd"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "bkfibbf", - "tags": ["dzjukcw"], + "search": "wpgkmzjjxf", + "tags": ["bst"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "colpleimdkebqvya", - "tags": ["fzp"], + "include_smart_links": True, + "search": "xrrhmdkfvdhufa", + "tags": ["owogdbrrtuvvuhpjqdyblwy"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index d0845c4..2c138f4 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="minima", + tracking_link_id="non", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="minima", + tracking_link_id="non", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="minima", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="minima", + tracking_link_id="non", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="est", + tracking_link_id="error", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="consequatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index bf9dff4..7e4bcd8 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="mollitia", + trial_link_id="assumenda", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="mollitia", + trial_link_id="assumenda", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="consequatur", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="velit", + trial_link_id="nihil", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 94a7502..6405507 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="mmryoeohbatuj", + name="hrthqjfqgmvb", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0a74e45ef5ecbefdfb4b2d3ca47c04004f77ee18 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 12:12:31 +0000 Subject: [PATCH 06/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 36 +++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index e403fe0..1ab2730 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-66432b705e73f5f3a80162c5a91d4f4f3216319c075d1e6491b80e0ec7c3a0bc.yml -openapi_spec_hash: ae75154ff3e4cad180cd49f21f7c3edf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-934dfcbcc28cc77e65463c2aec3a558e29e86c13ba73e6ba9a1d75474f954c40.yml +openapi_spec_hash: 1eee160806b94ae8bcddd1114c0f5c66 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f82e99b..339d49e 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="modi", + message_id="vel", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="modi", + message_id="vel", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="modi", + message_id="vel", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 8c83f1a..406ca50 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="autem", + list_id="et", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="autem", + list_id="et", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="autem", + list_id="et", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="autem", + list_id="et", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="autem", + list_id="et", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index aecad2b..61a914a 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="assumenda", + post_id="eos", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="assumenda", + post_id="eos", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="assumenda", + post_id="eos", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="assumenda", + post_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="assumenda", + post_id="eos", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 97b2e5f..4310884 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="quidem", + story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="quidem", + story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="quidem", + story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="quidem", + story_id="asperiores", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quidem", + path_story_id="asperiores", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="quidem", + story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quidem", + story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="quidem", + story_id="asperiores", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quidem", + story_id="asperiores", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 055f9d1..ac58a52 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "ut", + "similique", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "ut", + "similique", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "ut", + "similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "ut", + "similique", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "ut", + "similique", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "ut", + "similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 78984ca..28500b3 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="voluptas", + auth_id="est", auth_type="mobile_app", - cookies="et", + cookies="accusamus", custom_proxy={ "host": "proxy.example.com", - "password": "qS*N*uL_", + "password": "^'K5~T;", "port": 8080, - "username": "voluptatibus", + "username": "ex", }, - email="triston96@example.org", + email="madison.sanford@example.com", force_connect=True, - name="laborum", - password="z|4Hba!J*[1tY", + name="eum", + password="p.CmQSFK,m&M6Ih7O", proxy_country="uk", - user_agent="ut", - xbc="exercitationem", + user_agent="earum", + xbc="aliquam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="voluptas", + auth_id="est", auth_type="mobile_app", - cookies="et", + cookies="accusamus", custom_proxy={ "host": "proxy.example.com", - "password": "qS*N*uL_", + "password": "^'K5~T;", "port": 8080, - "username": "voluptatibus", + "username": "ex", }, - email="triston96@example.org", + email="madison.sanford@example.com", force_connect=True, - name="laborum", - password="z|4Hba!J*[1tY", + name="eum", + password="p.CmQSFK,m&M6Ih7O", proxy_country="uk", - user_agent="ut", - xbc="exercitationem", + user_agent="earum", + xbc="aliquam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b215885..4fb0fa4 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="purchases", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="purchases", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index aeadae2..6de4b37 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="quidem", + smart_link_id="a", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="quidem", + smart_link_id="a", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="quidem", + smart_link_id="a", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="quidem", + smart_link_id="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="quidem", + smart_link_id="a", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="quidem", + smart_link_id="a", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="quidem", + smart_link_id="a", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="quidem", + smart_link_id="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="facilis", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="officia", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ut", + smart_link_id="doloribus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="aut", + smart_link_id="assumenda", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="ea", + smart_link_id="molestias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 161714d..0f83147 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lw", - "tags": ["hbmsfbiiqpohllcshysjbodco"], + "search": "nmk", + "tags": ["hlmcnvv"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "va", - "tags": ["uhyqd"], + "search": "gktdilvtqglvciejdiunakdh", + "tags": ["rmuqsz"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "wpgkmzjjxf", - "tags": ["bst"], + "search": "bdqvdamsdyyq", + "tags": ["jqiqpym"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "xrrhmdkfvdhufa", - "tags": ["owogdbrrtuvvuhpjqdyblwy"], + "include_smart_links": False, + "search": "qmyxpgedvxeejmrcnoibqel", + "tags": ["f"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lw", - "tags": ["hbmsfbiiqpohllcshysjbodco"], + "search": "nmk", + "tags": ["hlmcnvv"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "va", - "tags": ["uhyqd"], + "search": "gktdilvtqglvciejdiunakdh", + "tags": ["rmuqsz"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "wpgkmzjjxf", - "tags": ["bst"], + "search": "bdqvdamsdyyq", + "tags": ["jqiqpym"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "xrrhmdkfvdhufa", - "tags": ["owogdbrrtuvvuhpjqdyblwy"], + "include_smart_links": False, + "search": "qmyxpgedvxeejmrcnoibqel", + "tags": ["f"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 2c138f4..a9fdc07 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="non", + tracking_link_id="ducimus", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="non", + tracking_link_id="ducimus", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="error", + tracking_link_id="non", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="sed", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7e4bcd8..1daee19 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="at", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="at", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="assumenda", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="at", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="consequatur", + trial_link_id="nostrum", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="excepturi", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="nesciunt", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6405507..4a19107 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="hrthqjfqgmvb", + name="brtolusozohwsysuvsajvlcxw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2c2c2d5611f7d22371608b4e105d702fc96cbbd1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 16:12:34 +0000 Subject: [PATCH 07/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1ab2730..0cc982e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-934dfcbcc28cc77e65463c2aec3a558e29e86c13ba73e6ba9a1d75474f954c40.yml -openapi_spec_hash: 1eee160806b94ae8bcddd1114c0f5c66 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e55a50c2c81f5391740f555c303206c2b2630a1209919d72b8a6a6e69db1f4f4.yml +openapi_spec_hash: 5a60d7cd395c23807527f20ade0c9b27 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 339d49e..182beed 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="vel", + message_id="repellat", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="vel", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="vel", + message_id="repellat", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 406ca50..84a4b6d 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="et", + list_id="sed", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="et", + list_id="sed", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="et", + list_id="sed", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="et", + list_id="sed", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="et", + list_id="sed", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 61a914a..4b5f246 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="eos", + post_id="commodi", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="eos", + post_id="commodi", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="eos", + post_id="commodi", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="eos", + post_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="eos", + post_id="commodi", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 4310884..7ababa9 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="asperiores", + story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="asperiores", + story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="asperiores", + story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="asperiores", + story_id="dolor", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="asperiores", + path_story_id="dolor", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="asperiores", + story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="asperiores", + story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="asperiores", + story_id="dolor", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="asperiores", + story_id="dolor", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ac58a52..e97c67e 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "similique", + "consequatur", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "similique", + "consequatur", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "similique", + "consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "similique", + "consequatur", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "similique", + "consequatur", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "similique", + "consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 28500b3..97c684a 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="est", - auth_type="mobile_app", - cookies="accusamus", + auth_id="cupiditate", + auth_type="raw_data", + cookies="numquam", custom_proxy={ "host": "proxy.example.com", - "password": "^'K5~T;", + "password": "pze7.j%$,~", "port": 8080, - "username": "ex", + "username": "temporibus", }, - email="madison.sanford@example.com", + email="conroy.fabian@example.org", force_connect=True, - name="eum", - password="p.CmQSFK,m&M6Ih7O", - proxy_country="uk", - user_agent="earum", - xbc="aliquam", + name="quos", + password=",q0>ov`>$35k4IB", + proxy_country="us", + user_agent="porro", + xbc="eum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="est", - auth_type="mobile_app", - cookies="accusamus", + auth_id="cupiditate", + auth_type="raw_data", + cookies="numquam", custom_proxy={ "host": "proxy.example.com", - "password": "^'K5~T;", + "password": "pze7.j%$,~", "port": 8080, - "username": "ex", + "username": "temporibus", }, - email="madison.sanford@example.com", + email="conroy.fabian@example.org", force_connect=True, - name="eum", - password="p.CmQSFK,m&M6Ih7O", - proxy_country="uk", - user_agent="earum", - xbc="aliquam", + name="quos", + password=",q0>ov`>$35k4IB", + proxy_country="us", + user_agent="porro", + xbc="eum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4fb0fa4..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 6de4b37..ad8720c 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="a", + smart_link_id="delectus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="a", + smart_link_id="delectus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="a", + smart_link_id="delectus", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="a", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="a", + smart_link_id="delectus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="a", + smart_link_id="delectus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="a", + smart_link_id="delectus", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="a", + smart_link_id="delectus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolorum", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="blanditiis", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="doloribus", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 0f83147..3c3c153 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "nmk", - "tags": ["hlmcnvv"], + "search": "grlbialoorw", + "tags": ["vcn"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "gktdilvtqglvciejdiunakdh", - "tags": ["rmuqsz"], + "search": "mjgzvnmmyaeyxclgydhu", + "tags": ["mmfjbmrjxyedmmahshzxsfljs"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "bdqvdamsdyyq", - "tags": ["jqiqpym"], + "search": "x", + "tags": ["quoucmjujvnjn"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "qmyxpgedvxeejmrcnoibqel", - "tags": ["f"], + "search": "qpblklloxxetckcohzfuqbool", + "tags": ["ctwhama"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "nmk", - "tags": ["hlmcnvv"], + "search": "grlbialoorw", + "tags": ["vcn"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "gktdilvtqglvciejdiunakdh", - "tags": ["rmuqsz"], + "search": "mjgzvnmmyaeyxclgydhu", + "tags": ["mmfjbmrjxyedmmahshzxsfljs"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "bdqvdamsdyyq", - "tags": ["jqiqpym"], + "search": "x", + "tags": ["quoucmjujvnjn"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "qmyxpgedvxeejmrcnoibqel", - "tags": ["f"], + "search": "qpblklloxxetckcohzfuqbool", + "tags": ["ctwhama"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a9fdc07..94567c0 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ducimus", + tracking_link_id="quod", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="ducimus", + tracking_link_id="quod", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="qui", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 1daee19..ef96842 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="at", + trial_link_id="numquam", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="at", + trial_link_id="numquam", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="at", + trial_link_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="at", + trial_link_id="numquam", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nostrum", + trial_link_id="fugiat", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="excepturi", + trial_link_id="ullam", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="nihil", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 4a19107..5400a33 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="brtolusozohwsysuvsajvlcxw", + name="dvekkxgdrjbkgolizpqu", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 196b0123732493210c74e905d55c82ceafee11b9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 May 2026 18:12:33 +0000 Subject: [PATCH 08/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 18 files changed, 272 insertions(+), 272 deletions(-) diff --git a/.stats.yml b/.stats.yml index 0cc982e..74e305f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e55a50c2c81f5391740f555c303206c2b2630a1209919d72b8a6a6e69db1f4f4.yml -openapi_spec_hash: 5a60d7cd395c23807527f20ade0c9b27 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d0fb906843e55b3d7588949981f47bd5e396d7b7f3fafd5d1a654e771560d0a.yml +openapi_spec_hash: 603da045db41673bca4f25cf1dccc873 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 182beed..dabb97e 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="sunt", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="repellat", + message_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="sunt", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 84a4b6d..3f82885 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="sed", + list_id="ut", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="sed", + list_id="ut", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="sed", + list_id="ut", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="sed", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="sed", + list_id="ut", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4b5f246..beb3d11 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="commodi", + post_id="voluptatem", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="commodi", + post_id="voluptatem", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="commodi", + post_id="voluptatem", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="commodi", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="commodi", + post_id="voluptatem", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=24, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 7ababa9..b593ca9 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="dolor", + story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="dolor", + story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="dolor", + story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="dolor", + story_id="distinctio", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="dolor", + path_story_id="distinctio", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="dolor", + story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="dolor", + story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="dolor", + story_id="distinctio", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="dolor", + story_id="distinctio", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e97c67e..ca2c75e 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "consequatur", + "id", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "consequatur", + "id", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "consequatur", + "id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "consequatur", + "id", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "consequatur", + "id", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "consequatur", + "id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 97c684a..e7d190d 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="cupiditate", - auth_type="raw_data", - cookies="numquam", + auth_id="placeat", + auth_type="mobile_app", + cookies="beatae", custom_proxy={ "host": "proxy.example.com", - "password": "pze7.j%$,~", + "password": "=U5JYZj.a&F(s", "port": 8080, - "username": "temporibus", + "username": "est", }, - email="conroy.fabian@example.org", - force_connect=True, - name="quos", - password=",q0>ov`>$35k4IB", - proxy_country="us", - user_agent="porro", - xbc="eum", + email="otilia.gorczany@example.net", + force_connect=False, + name="natus", + password="=xgmp+", + proxy_country="uk", + user_agent="facere", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="cupiditate", - auth_type="raw_data", - cookies="numquam", + auth_id="placeat", + auth_type="mobile_app", + cookies="beatae", custom_proxy={ "host": "proxy.example.com", - "password": "pze7.j%$,~", + "password": "=U5JYZj.a&F(s", "port": 8080, - "username": "temporibus", + "username": "est", }, - email="conroy.fabian@example.org", - force_connect=True, - name="quos", - password=",q0>ov`>$35k4IB", - proxy_country="us", - user_agent="porro", - xbc="eum", + email="otilia.gorczany@example.net", + force_connect=False, + name="natus", + password="=xgmp+", + proxy_country="uk", + user_agent="facere", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index ad8720c..444492a 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="delectus", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="delectus", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="delectus", + smart_link_id="et", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="delectus", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="in", + smart_link_id="animi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="in", + smart_link_id="animi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="in", + smart_link_id="animi", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="in", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="et", + smart_link_id="aut", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="et", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="delectus", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="delectus", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="delectus", + smart_link_id="et", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="delectus", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="in", + smart_link_id="animi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="in", + smart_link_id="animi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="in", + smart_link_id="animi", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="in", + smart_link_id="animi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="voluptates", + smart_link_id="nisi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="et", + smart_link_id="aut", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="et", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="et", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="consequatur", + smart_link_id="perferendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 3c3c153..7a26778 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "grlbialoorw", - "tags": ["vcn"], + "search": "bhpkxlqwrxldvrfxdn", + "tags": ["fpcnqpamdczuehgsrlc"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "mjgzvnmmyaeyxclgydhu", - "tags": ["mmfjbmrjxyedmmahshzxsfljs"], + "search": "rcyqrptav", + "tags": ["xivtltezkgtfhxjms"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "x", - "tags": ["quoucmjujvnjn"], + "include_smart_links": True, + "search": "qwxdalidkkhgqxmlhmuscujvo", + "tags": ["xivjgvkwjsdluksqx"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "qpblklloxxetckcohzfuqbool", - "tags": ["ctwhama"], + "search": "zsfjcdivfhppxcbksl", + "tags": ["kddjoaciuyxvbncr"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "grlbialoorw", - "tags": ["vcn"], + "search": "bhpkxlqwrxldvrfxdn", + "tags": ["fpcnqpamdczuehgsrlc"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "mjgzvnmmyaeyxclgydhu", - "tags": ["mmfjbmrjxyedmmahshzxsfljs"], + "search": "rcyqrptav", + "tags": ["xivtltezkgtfhxjms"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "x", - "tags": ["quoucmjujvnjn"], + "include_smart_links": True, + "search": "qwxdalidkkhgqxmlhmuscujvo", + "tags": ["xivjgvkwjsdluksqx"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "qpblklloxxetckcohzfuqbool", - "tags": ["ctwhama"], + "search": "zsfjcdivfhppxcbksl", + "tags": ["kddjoaciuyxvbncr"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 94567c0..46875dc 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quod", + tracking_link_id="omnis", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quod", + tracking_link_id="omnis", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="vero", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="similique", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index ef96842..5e82346 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="numquam", + trial_link_id="omnis", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="numquam", + trial_link_id="omnis", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="fugiat", + trial_link_id="quaerat", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ullam", + trial_link_id="quibusdam", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nihil", + trial_link_id="expedita", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 5400a33..eaf5952 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="dvekkxgdrjbkgolizpqu", + name="jgjdgkvafywrsyrcyizljf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0babea32599dc9d8603ba9e6519f9760367ad1f6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 00:12:31 +0000 Subject: [PATCH 09/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 242 insertions(+), 242 deletions(-) diff --git a/.stats.yml b/.stats.yml index 74e305f..f02fa89 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-1d0fb906843e55b3d7588949981f47bd5e396d7b7f3fafd5d1a654e771560d0a.yml -openapi_spec_hash: 603da045db41673bca4f25cf1dccc873 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3cb873d908d3b4b81941e932344db46ecf629f68ec79a5edd0751edc3d245470.yml +openapi_spec_hash: a0b2473d40f23a530c4586a513838305 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index dabb97e..b484c8f 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="sunt", + message_id="numquam", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="sunt", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="sunt", + message_id="numquam", account="", ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index beb3d11..dc2aa47 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="beatae", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="beatae", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="beatae", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="voluptatem", + post_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="beatae", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index b593ca9..b65d2ef 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="distinctio", + path_story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="distinctio", + path_story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="distinctio", + path_story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="distinctio", + path_story_id="officia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="distinctio", + story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="distinctio", + story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="distinctio", + story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="distinctio", + story_id="officia", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="distinctio", + path_story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="distinctio", + path_story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="distinctio", + path_story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="distinctio", + path_story_id="officia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="distinctio", + story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="distinctio", + story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="distinctio", + story_id="officia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="distinctio", + story_id="officia", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index ca2c75e..1863bb8 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "id", + "laudantium", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "id", + "laudantium", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "id", + "laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "id", + "laudantium", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "id", + "laudantium", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "id", + "laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index e7d190d..000c853 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="placeat", + auth_id="sed", auth_type="mobile_app", - cookies="beatae", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "=U5JYZj.a&F(s", + "password": "wkI.Lb+", "port": 8080, - "username": "est", + "username": "quam", }, - email="otilia.gorczany@example.net", - force_connect=False, - name="natus", - password="=xgmp+", + email="eveline18@example.com", + force_connect=True, + name="quos", + password="_E&9kHe}w", proxy_country="uk", - user_agent="facere", - xbc="qui", + user_agent="perferendis", + xbc="quia", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="placeat", + auth_id="sed", auth_type="mobile_app", - cookies="beatae", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "=U5JYZj.a&F(s", + "password": "wkI.Lb+", "port": 8080, - "username": "est", + "username": "quam", }, - email="otilia.gorczany@example.net", - force_connect=False, - name="natus", - password="=xgmp+", + email="eveline18@example.com", + force_connect=True, + name="quos", + password="_E&9kHe}w", proxy_country="uk", - user_agent="facere", - xbc="qui", + user_agent="perferendis", + xbc="quia", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..4fb0fa4 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 444492a..df243bd 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="id", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="id", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="et", + smart_link_id="id", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="et", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="animi", + smart_link_id="ex", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="animi", + smart_link_id="ex", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="animi", + smart_link_id="ex", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="animi", + smart_link_id="ex", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="nisi", + smart_link_id="quae", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="nisi", + smart_link_id="quae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="nisi", + smart_link_id="quae", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="nisi", + smart_link_id="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="aut", + smart_link_id="odit", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="aut", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="id", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="id", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="et", + smart_link_id="id", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="et", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="animi", + smart_link_id="ex", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="animi", + smart_link_id="ex", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="animi", + smart_link_id="ex", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="animi", + smart_link_id="ex", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="nisi", + smart_link_id="quae", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="nisi", + smart_link_id="quae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="nisi", + smart_link_id="quae", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="nisi", + smart_link_id="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="aut", + smart_link_id="odit", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="aut", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eum", + smart_link_id="rem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="perferendis", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 7a26778..491064d 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "bhpkxlqwrxldvrfxdn", - "tags": ["fpcnqpamdczuehgsrlc"], + "search": "qswr", + "tags": ["yvvtvwhtxd"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "rcyqrptav", - "tags": ["xivtltezkgtfhxjms"], + "search": "evyrhcwqtntpvhns", + "tags": ["zonosukkipcxdknogktm"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "qwxdalidkkhgqxmlhmuscujvo", - "tags": ["xivjgvkwjsdluksqx"], + "search": "pm", + "tags": ["wtlwuhazlp"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "zsfjcdivfhppxcbksl", - "tags": ["kddjoaciuyxvbncr"], + "include_smart_links": True, + "search": "snplardxcadjuirmn", + "tags": ["rmpbcssofxoxwazesrkjgzxha"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "bhpkxlqwrxldvrfxdn", - "tags": ["fpcnqpamdczuehgsrlc"], + "search": "qswr", + "tags": ["yvvtvwhtxd"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "rcyqrptav", - "tags": ["xivtltezkgtfhxjms"], + "search": "evyrhcwqtntpvhns", + "tags": ["zonosukkipcxdknogktm"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "qwxdalidkkhgqxmlhmuscujvo", - "tags": ["xivjgvkwjsdluksqx"], + "search": "pm", + "tags": ["wtlwuhazlp"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "zsfjcdivfhppxcbksl", - "tags": ["kddjoaciuyxvbncr"], + "include_smart_links": True, + "search": "snplardxcadjuirmn", + "tags": ["rmpbcssofxoxwazesrkjgzxha"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 46875dc..cbccb1e 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="doloremque", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="vero", + tracking_link_id="qui", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="similique", + tracking_link_id="rem", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5e82346..c220d92 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="omnis", + trial_link_id="blanditiis", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="omnis", + trial_link_id="blanditiis", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="quaerat", + trial_link_id="deserunt", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quibusdam", + trial_link_id="id", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="expedita", + trial_link_id="omnis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index eaf5952..e65bd20 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="jgjdgkvafywrsyrcyizljf", + name="zdftzflzq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 015b0d11070c3801c8bb26ff99b2f7f1d9ad5627 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 10:12:35 +0000 Subject: [PATCH 10/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index f02fa89..de968c8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-3cb873d908d3b4b81941e932344db46ecf629f68ec79a5edd0751edc3d245470.yml -openapi_spec_hash: a0b2473d40f23a530c4586a513838305 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b7d9b62b07992b1915071ab795f6636a508caba021b53c6e5a2a710a4b5241d2.yml +openapi_spec_hash: 06d16ab25f3ea370fd1f98a00f47f0a0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b484c8f..7506a92 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="ut", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="numquam", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="ut", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f82885..b6ea397 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="eligendi", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="eligendi", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="eligendi", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="ut", + list_id="eligendi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="eligendi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index dc2aa47..c1a63ac 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="beatae", + post_id="est", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="beatae", + post_id="est", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="beatae", + post_id="est", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="beatae", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="beatae", + post_id="est", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index b65d2ef..506c2ed 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="officia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="officia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="officia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="officia", + path_story_id="et", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="officia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="officia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="officia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="officia", + story_id="et", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="officia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="officia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="officia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="officia", + path_story_id="et", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="officia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="officia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="officia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="officia", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 1863bb8..723dc6f 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "laudantium", + "voluptas", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "laudantium", + "voluptas", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "laudantium", + "voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "laudantium", + "voluptas", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "laudantium", + "voluptas", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "laudantium", + "voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 000c853..a8d7e5a 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="sed", + auth_id="quidem", auth_type="mobile_app", - cookies="aut", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "wkI.Lb+", + "password": "04|.3`LFYSu-jn?l", "port": 8080, - "username": "quam", + "username": "repellendus", }, - email="eveline18@example.com", - force_connect=True, - name="quos", - password="_E&9kHe}w", + email="berry52@example.net", + force_connect=False, + name="libero", + password="qn-QD[{", proxy_country="uk", - user_agent="perferendis", - xbc="quia", + user_agent="quam", + xbc="culpa", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="sed", + auth_id="quidem", auth_type="mobile_app", - cookies="aut", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "wkI.Lb+", + "password": "04|.3`LFYSu-jn?l", "port": 8080, - "username": "quam", + "username": "repellendus", }, - email="eveline18@example.com", - force_connect=True, - name="quos", - password="_E&9kHe}w", + email="berry52@example.net", + force_connect=False, + name="libero", + password="qn-QD[{", proxy_country="uk", - user_agent="perferendis", - xbc="quia", + user_agent="quam", + xbc="culpa", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4fb0fa4..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index df243bd..a5e5016 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="id", + smart_link_id="fuga", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="id", + smart_link_id="fuga", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="id", + smart_link_id="fuga", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="id", + smart_link_id="fuga", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="id", + smart_link_id="fuga", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="id", + smart_link_id="fuga", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="id", + smart_link_id="fuga", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="id", + smart_link_id="fuga", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ex", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quae", + smart_link_id="deleniti", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="odit", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="rem", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="aliquam", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 491064d..772ba27 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qswr", - "tags": ["yvvtvwhtxd"], + "search": "kkweaxpjjxbwu", + "tags": ["tyukz"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "evyrhcwqtntpvhns", - "tags": ["zonosukkipcxdknogktm"], + "search": "cqdilcnrjajeh", + "tags": ["sedvirmvtqlvvc"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "pm", - "tags": ["wtlwuhazlp"], + "search": "cvfwddjacuao", + "tags": ["uppuicvrofiyqafdibxqxezw"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "snplardxcadjuirmn", - "tags": ["rmpbcssofxoxwazesrkjgzxha"], + "include_smart_links": False, + "search": "egoriglrhzcdqkyjukzalpjv", + "tags": ["sapdalqkwrk"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qswr", - "tags": ["yvvtvwhtxd"], + "search": "kkweaxpjjxbwu", + "tags": ["tyukz"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "evyrhcwqtntpvhns", - "tags": ["zonosukkipcxdknogktm"], + "search": "cqdilcnrjajeh", + "tags": ["sedvirmvtqlvvc"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "pm", - "tags": ["wtlwuhazlp"], + "search": "cvfwddjacuao", + "tags": ["uppuicvrofiyqafdibxqxezw"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "snplardxcadjuirmn", - "tags": ["rmpbcssofxoxwazesrkjgzxha"], + "include_smart_links": False, + "search": "egoriglrhzcdqkyjukzalpjv", + "tags": ["sapdalqkwrk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index cbccb1e..0a44623 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="doloremque", + tracking_link_id="asperiores", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="qui", + tracking_link_id="nam", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="rem", + tracking_link_id="quia", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c220d92..5028cdf 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="blanditiis", + trial_link_id="repellat", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="blanditiis", + trial_link_id="repellat", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="deserunt", + trial_link_id="vitae", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="id", + trial_link_id="qui", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="omnis", + trial_link_id="quibusdam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e65bd20..fbf2cf2 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="zdftzflzq", + name="gwdimjpdnyjxck", ) @pytest.mark.skip(reason="Mock server tests are disabled") From af71d0ce89f943af5d27d66a5fbb1cd8e7285f9b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 13:12:34 +0000 Subject: [PATCH 11/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index de968c8..62663e5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b7d9b62b07992b1915071ab795f6636a508caba021b53c6e5a2a710a4b5241d2.yml -openapi_spec_hash: 06d16ab25f3ea370fd1f98a00f47f0a0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9eac1756e78aa7ebb44a52251e6cc7e9b71453f4b83621038502db7001fe2e81.yml +openapi_spec_hash: 5e1e13e08b9151eec63c62350b75a542 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a92..0c142c8 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="esse", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="esse", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="esse", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index b6ea397..5150350 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="eligendi", + list_id="illo", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="eligendi", + list_id="illo", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="eligendi", + list_id="illo", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="eligendi", + list_id="illo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="eligendi", + list_id="illo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c1a63ac..13b0c13 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="est", + post_id="sequi", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="est", + post_id="sequi", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="est", + post_id="sequi", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="est", + post_id="sequi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="est", + post_id="sequi", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=6, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 506c2ed..905e48e 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="et", + path_story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="et", + path_story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="sapiente", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="et", + story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="et", + story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="sapiente", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="et", + path_story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="et", + path_story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="sapiente", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="et", + story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="et", + story_id="sapiente", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="sapiente", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 723dc6f..29806e4 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "voluptas", + "consectetur", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "voluptas", + "consectetur", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "voluptas", + "consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "voluptas", + "consectetur", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "voluptas", + "consectetur", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "voluptas", + "consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index a8d7e5a..89f55f5 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="quidem", - auth_type="mobile_app", - cookies="accusantium", + auth_id="voluptate", + auth_type="raw_data", + cookies="aliquid", custom_proxy={ "host": "proxy.example.com", - "password": "04|.3`LFYSu-jn?l", + "password": "E?1eXPBS@#Ixn", "port": 8080, - "username": "repellendus", + "username": "iure", }, - email="berry52@example.net", + email="labadie.seth@example.org", force_connect=False, - name="libero", - password="qn-QD[{", + name="nihil", + password="&`M#]u&=l,^n1pcRm", proxy_country="uk", - user_agent="quam", - xbc="culpa", + user_agent="eos", + xbc="quibusdam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="quidem", - auth_type="mobile_app", - cookies="accusantium", + auth_id="voluptate", + auth_type="raw_data", + cookies="aliquid", custom_proxy={ "host": "proxy.example.com", - "password": "04|.3`LFYSu-jn?l", + "password": "E?1eXPBS@#Ixn", "port": 8080, - "username": "repellendus", + "username": "iure", }, - email="berry52@example.net", + email="labadie.seth@example.org", force_connect=False, - name="libero", - password="qn-QD[{", + name="nihil", + password="&`M#]u&=l,^n1pcRm", proxy_country="uk", - user_agent="quam", - xbc="culpa", + user_agent="eos", + xbc="quibusdam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index a5e5016..d4e4b1c 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="fuga", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ipsum", + smart_link_id="pariatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="deleniti", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="dolorum", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="libero", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 772ba27..e05120c 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "kkweaxpjjxbwu", - "tags": ["tyukz"], + "search": "cmsrqdkjttoifpnucykkwkr", + "tags": ["prtcbd"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cqdilcnrjajeh", - "tags": ["sedvirmvtqlvvc"], + "search": "ixjvtoidbksgbazqh", + "tags": ["xzxlvkgqtjwcdzgqkcg"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "cvfwddjacuao", - "tags": ["uppuicvrofiyqafdibxqxezw"], + "search": "ylnowyoxcfjfwczjsgycng", + "tags": ["gpehfu"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "egoriglrhzcdqkyjukzalpjv", - "tags": ["sapdalqkwrk"], + "include_smart_links": True, + "search": "itdutqbjb", + "tags": ["yelkbdwbihx"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "kkweaxpjjxbwu", - "tags": ["tyukz"], + "search": "cmsrqdkjttoifpnucykkwkr", + "tags": ["prtcbd"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cqdilcnrjajeh", - "tags": ["sedvirmvtqlvvc"], + "search": "ixjvtoidbksgbazqh", + "tags": ["xzxlvkgqtjwcdzgqkcg"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "cvfwddjacuao", - "tags": ["uppuicvrofiyqafdibxqxezw"], + "search": "ylnowyoxcfjfwczjsgycng", + "tags": ["gpehfu"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "egoriglrhzcdqkyjukzalpjv", - "tags": ["sapdalqkwrk"], + "include_smart_links": True, + "search": "itdutqbjb", + "tags": ["yelkbdwbihx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0a44623..45817f5 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="asperiores", + tracking_link_id="quia", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="asperiores", + tracking_link_id="quia", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="nam", + tracking_link_id="cupiditate", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="molestias", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5028cdf..9d9ae1a 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="natus", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="natus", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="repellat", + trial_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="natus", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vitae", + trial_link_id="reprehenderit", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="laboriosam", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quibusdam", + trial_link_id="nobis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fbf2cf2..41eb521 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="gwdimjpdnyjxck", + name="ulbo", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gwdimjpdnyjxck", + name="ulbo", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gwdimjpdnyjxck", + name="ulbo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="gwdimjpdnyjxck", + name="ulbo", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="gwdimjpdnyjxck", + name="ulbo", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gwdimjpdnyjxck", + name="ulbo", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gwdimjpdnyjxck", + name="ulbo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="gwdimjpdnyjxck", + name="ulbo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 88c6d42c3c75411714bd70c03322d76b7960208a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 15:12:35 +0000 Subject: [PATCH 12/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 62663e5..d04999b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-9eac1756e78aa7ebb44a52251e6cc7e9b71453f4b83621038502db7001fe2e81.yml -openapi_spec_hash: 5e1e13e08b9151eec63c62350b75a542 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2a1ef16720390ce14743c08d67aa6beca760a5b721108e04c2fa9ba816141b02.yml +openapi_spec_hash: 7d897c87507de4f0c59a2e7c26a79004 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 0c142c8..f9b244c 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="esse", + message_id="earum", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="esse", + message_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="esse", + message_id="earum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 5150350..9170c9f 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="illo", + list_id="neque", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="illo", + list_id="neque", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="illo", + list_id="neque", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="illo", + list_id="neque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="illo", + list_id="neque", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 13b0c13..f66b90a 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="sequi", + post_id="ut", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="sequi", + post_id="ut", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="sequi", + post_id="ut", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="sequi", + post_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="sequi", + post_id="ut", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 905e48e..63ac192 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="sapiente", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="sapiente", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="sapiente", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="sapiente", + path_story_id="sint", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="sapiente", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="sapiente", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="sapiente", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="sapiente", + story_id="sint", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="sapiente", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sapiente", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="sapiente", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sapiente", + path_story_id="sint", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="sapiente", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sapiente", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="sapiente", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sapiente", + story_id="sint", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 29806e4..7db58d6 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "consectetur", + "ipsum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "consectetur", + "ipsum", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "consectetur", + "ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "consectetur", + "ipsum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "consectetur", + "ipsum", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "consectetur", + "ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 89f55f5..6b312e4 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="voluptate", - auth_type="raw_data", - cookies="aliquid", + auth_id="consequuntur", + auth_type="email_password", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "E?1eXPBS@#Ixn", + "password": "\\ None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="voluptate", - auth_type="raw_data", - cookies="aliquid", + auth_id="consequuntur", + auth_type="email_password", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "E?1eXPBS@#Ixn", + "password": "\\ None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index d4e4b1c..8ef7a4e 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="iure", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="iure", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="sed", + smart_link_id="iure", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sed", + smart_link_id="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="iure", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="iure", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="sed", + smart_link_id="iure", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sed", + smart_link_id="iure", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="pariatur", + smart_link_id="reiciendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="fugiat", + smart_link_id="cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="totam", + smart_link_id="officiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="sint", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index e05120c..1cd47b3 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cmsrqdkjttoifpnucykkwkr", - "tags": ["prtcbd"], + "search": "tnikeeadpdcldcwbgvqwkpjw", + "tags": ["kwxbzclkhfmcxoghpm"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ixjvtoidbksgbazqh", - "tags": ["xzxlvkgqtjwcdzgqkcg"], + "search": "l", + "tags": ["su"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ylnowyoxcfjfwczjsgycng", - "tags": ["gpehfu"], + "search": "yannnhgeue", + "tags": ["rdm"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "itdutqbjb", - "tags": ["yelkbdwbihx"], + "search": "gsrcojswlttrmispl", + "tags": ["gtisoxpsnnkfxkjyjzxc"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cmsrqdkjttoifpnucykkwkr", - "tags": ["prtcbd"], + "search": "tnikeeadpdcldcwbgvqwkpjw", + "tags": ["kwxbzclkhfmcxoghpm"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ixjvtoidbksgbazqh", - "tags": ["xzxlvkgqtjwcdzgqkcg"], + "search": "l", + "tags": ["su"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ylnowyoxcfjfwczjsgycng", - "tags": ["gpehfu"], + "search": "yannnhgeue", + "tags": ["rdm"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "itdutqbjb", - "tags": ["yelkbdwbihx"], + "search": "gsrcojswlttrmispl", + "tags": ["gtisoxpsnnkfxkjyjzxc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 45817f5..a778b4e 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="occaecati", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="occaecati", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="cupiditate", + tracking_link_id="quasi", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestias", + tracking_link_id="ut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 9d9ae1a..6ae37ea 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="natus", + trial_link_id="nihil", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="natus", + trial_link_id="nihil", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="natus", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="natus", + trial_link_id="nihil", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="reprehenderit", + trial_link_id="maxime", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laboriosam", + trial_link_id="ipsum", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nobis", + trial_link_id="aut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 41eb521..c2c3b77 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="ulbo", + name="favabwll", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ulbo", + name="favabwll", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ulbo", + name="favabwll", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="ulbo", + name="favabwll", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="ulbo", + name="favabwll", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ulbo", + name="favabwll", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ulbo", + name="favabwll", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="ulbo", + name="favabwll", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 0942b231431790866d93cc2e477082c5aee0b87c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 17:12:34 +0000 Subject: [PATCH 13/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index d04999b..3e2f542 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-2a1ef16720390ce14743c08d67aa6beca760a5b721108e04c2fa9ba816141b02.yml -openapi_spec_hash: 7d897c87507de4f0c59a2e7c26a79004 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c9d17ae99932b11fa8819040651f08274c017fecf393e316c45623991892d4d9.yml +openapi_spec_hash: 2c5d98333a487dcdc5b27d8d39a467a9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f9b244c..6996a9a 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="earum", + message_id="quos", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="earum", + message_id="quos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="earum", + message_id="quos", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 9170c9f..82b7bbb 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="neque", + list_id="dolore", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="neque", + list_id="dolore", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="neque", + list_id="dolore", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="neque", + list_id="dolore", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="neque", + list_id="dolore", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f66b90a..beb3d11 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="ut", + post_id="voluptatem", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="ut", + post_id="voluptatem", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="ut", + post_id="voluptatem", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="ut", + post_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="ut", + post_id="voluptatem", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 63ac192..2ea0e88 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="sint", + path_story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="sint", + path_story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="similique", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="sint", + story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="sint", + story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="similique", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="sint", + path_story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="sint", + path_story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="similique", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="sint", + story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="sint", + story_id="similique", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="similique", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7db58d6..71b1c63 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "ipsum", + "nobis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "ipsum", + "nobis", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "ipsum", + "nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "ipsum", + "nobis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "ipsum", + "nobis", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "ipsum", + "nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 6b312e4..81bee3b 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="consequuntur", - auth_type="email_password", - cookies="accusantium", + auth_id="ipsa", + auth_type="mobile_app", + cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "\\ None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="consequuntur", - auth_type="email_password", - cookies="accusantium", + auth_id="ipsa", + auth_type="mobile_app", + cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "\\ None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..aaff3bf 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="promotions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="promotions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 8ef7a4e..d0bef00 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="iure", + smart_link_id="sit", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="iure", + smart_link_id="sit", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="iure", + smart_link_id="sit", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="iure", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="officiis", + smart_link_id="error", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="officiis", + smart_link_id="error", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="officiis", + smart_link_id="error", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="officiis", + smart_link_id="error", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="iure", + smart_link_id="sit", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="iure", + smart_link_id="sit", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="iure", + smart_link_id="sit", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="iure", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="reiciendis", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="cumque", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="officiis", + smart_link_id="error", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="officiis", + smart_link_id="error", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="officiis", + smart_link_id="error", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="officiis", + smart_link_id="error", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="dicta", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="sint", + smart_link_id="possimus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 1cd47b3..d882871 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tnikeeadpdcldcwbgvqwkpjw", - "tags": ["kwxbzclkhfmcxoghpm"], + "search": "qqheombvpwlybfrghk", + "tags": ["mbjgezxcez"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "l", - "tags": ["su"], + "search": "mofzhumszeempwfrtjsijn", + "tags": ["zmyvjn"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "yannnhgeue", - "tags": ["rdm"], + "search": "htqtywisbibxp", + "tags": ["zwjtlqxzkxf"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "gsrcojswlttrmispl", - "tags": ["gtisoxpsnnkfxkjyjzxc"], + "search": "warfhwncfhktc", + "tags": ["efjaatkslpplwprre"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tnikeeadpdcldcwbgvqwkpjw", - "tags": ["kwxbzclkhfmcxoghpm"], + "search": "qqheombvpwlybfrghk", + "tags": ["mbjgezxcez"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "l", - "tags": ["su"], + "search": "mofzhumszeempwfrtjsijn", + "tags": ["zmyvjn"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "yannnhgeue", - "tags": ["rdm"], + "search": "htqtywisbibxp", + "tags": ["zwjtlqxzkxf"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "gsrcojswlttrmispl", - "tags": ["gtisoxpsnnkfxkjyjzxc"], + "search": "warfhwncfhktc", + "tags": ["efjaatkslpplwprre"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a778b4e..5966af9 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="occaecati", + tracking_link_id="cupiditate", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quasi", + tracking_link_id="ipsa", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="facilis", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 6ae37ea..c5c0c33 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="nihil", + trial_link_id="est", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="nihil", + trial_link_id="est", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="nihil", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="nihil", + trial_link_id="est", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="et", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ipsum", + trial_link_id="aut", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="aut", + trial_link_id="quam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index c2c3b77..ac71209 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="favabwll", + name="yfqwkqknufqvkrkihg", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9ffc9d354f805880d3363c4084fe49935a7a9d10 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 20:12:34 +0000 Subject: [PATCH 14/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 36 +++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 242 insertions(+), 242 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3e2f542..5753597 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c9d17ae99932b11fa8819040651f08274c017fecf393e316c45623991892d4d9.yml -openapi_spec_hash: 2c5d98333a487dcdc5b27d8d39a467a9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-228e5e4b58ef1db78cc4762898961e3f01c5e8b0a73c4ecf50e46bdf63fe5874.yml +openapi_spec_hash: 52c5d5d27afadbefbb9672f10f1d4867 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6996a9a..7506a92 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quos", + message_id="ut", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quos", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quos", + message_id="ut", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 82b7bbb..440e390 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="dolore", + list_id="voluptas", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="dolore", + list_id="voluptas", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="dolore", + list_id="voluptas", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="dolore", + list_id="voluptas", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="dolore", + list_id="voluptas", account="", media_ids=["string"], ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=48, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 2ea0e88..0d2e97e 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="similique", + story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="similique", + story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="similique", + story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="similique", + story_id="voluptatem", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="similique", + path_story_id="voluptatem", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="similique", + story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="similique", + story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="similique", + story_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="similique", + story_id="voluptatem", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 71b1c63..858c641 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "nobis", + "quo", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "nobis", + "quo", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "nobis", + "quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "nobis", + "quo", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "nobis", + "quo", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "nobis", + "quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 81bee3b..3c15572 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="ipsa", - auth_type="mobile_app", + auth_id="repudiandae", + auth_type="email_password", cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "cWV+NtXhY'~?Y@R6X^ON", + "password": "{)8%/]U_X@F@", "port": 8080, - "username": "quia", + "username": "dolorem", }, - email="samanta90@example.net", + email="cody.christiansen@example.org", force_connect=True, - name="voluptatem", - password="^6*fD'v\"_ None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="ipsa", - auth_type="mobile_app", + auth_id="repudiandae", + auth_type="email_password", cookies="dolores", custom_proxy={ "host": "proxy.example.com", - "password": "cWV+NtXhY'~?Y@R6X^ON", + "password": "{)8%/]U_X@F@", "port": 8080, - "username": "quia", + "username": "dolorem", }, - email="samanta90@example.net", + email="cody.christiansen@example.org", force_connect=True, - name="voluptatem", - password="^6*fD'v\"_ None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index d0bef00..6cd3530 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="at", + smart_link_id="esse", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="at", + smart_link_id="esse", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="at", + smart_link_id="esse", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="at", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sit", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="at", + smart_link_id="esse", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="at", + smart_link_id="esse", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="at", + smart_link_id="esse", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="at", + smart_link_id="esse", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quidem", + smart_link_id="impedit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="error", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="temporibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="possimus", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index d882871..9b6393b 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qqheombvpwlybfrghk", - "tags": ["mbjgezxcez"], + "search": "slmprqkintw", + "tags": ["flg"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "mofzhumszeempwfrtjsijn", - "tags": ["zmyvjn"], + "search": "efyfvcvj", + "tags": ["qtieoeqnu"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "htqtywisbibxp", - "tags": ["zwjtlqxzkxf"], + "search": "bgriegu", + "tags": ["albsndn"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "warfhwncfhktc", - "tags": ["efjaatkslpplwprre"], + "search": "oevrmrrtmjh", + "tags": ["kdllstrjrbkiwobfzyoyohkm"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qqheombvpwlybfrghk", - "tags": ["mbjgezxcez"], + "search": "slmprqkintw", + "tags": ["flg"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "mofzhumszeempwfrtjsijn", - "tags": ["zmyvjn"], + "search": "efyfvcvj", + "tags": ["qtieoeqnu"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "htqtywisbibxp", - "tags": ["zwjtlqxzkxf"], + "search": "bgriegu", + "tags": ["albsndn"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "warfhwncfhktc", - "tags": ["efjaatkslpplwprre"], + "search": "oevrmrrtmjh", + "tags": ["kdllstrjrbkiwobfzyoyohkm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 5966af9..a177582 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="cupiditate", + tracking_link_id="ex", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ipsa", + tracking_link_id="ullam", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="facilis", + tracking_link_id="cupiditate", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index c5c0c33..f236ae5 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="tempora", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="tempora", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="est", + trial_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="tempora", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="voluptatibus", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="qui", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quam", + trial_link_id="autem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index ac71209..b3c9bd1 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="yfqwkqknufqvkrkihg", + name="xl", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yfqwkqknufqvkrkihg", + name="xl", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yfqwkqknufqvkrkihg", + name="xl", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="yfqwkqknufqvkrkihg", + name="xl", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="yfqwkqknufqvkrkihg", + name="xl", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yfqwkqknufqvkrkihg", + name="xl", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yfqwkqknufqvkrkihg", + name="xl", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="yfqwkqknufqvkrkihg", + name="xl", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 43559da1af5ee18c58b99677f3cfd559e0e2106e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 13:12:36 +0000 Subject: [PATCH 15/48] feat(api): api update --- .stats.yml | 4 +- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5753597..7c8bcbc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-228e5e4b58ef1db78cc4762898961e3f01c5e8b0a73c4ecf50e46bdf63fe5874.yml -openapi_spec_hash: 52c5d5d27afadbefbb9672f10f1d4867 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b97ef4ada355dc29dcda44aaa240d7ae51affb7573331f039de8f204ec07fb6d.yml +openapi_spec_hash: 62f41c3ea5bbda67c8b977f70fbd67d5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 440e390..e8dbfc3 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="voluptas", + list_id="sequi", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptas", + list_id="sequi", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="voluptas", + list_id="sequi", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="voluptas", + list_id="sequi", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptas", + list_id="sequi", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index beb3d11..4268a90 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="autem", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="autem", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="voluptatem", + post_id="autem", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="voluptatem", + post_id="autem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="voluptatem", + post_id="autem", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 0d2e97e..029ec61 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="voluptatem", + story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="voluptatem", + story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="voluptatem", + story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="voluptatem", + story_id="repellat", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="voluptatem", + path_story_id="repellat", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="voluptatem", + story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="voluptatem", + story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="voluptatem", + story_id="repellat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="voluptatem", + story_id="repellat", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 858c641..92eea1a 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "quo", + "laboriosam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "quo", + "laboriosam", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "quo", + "laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "quo", + "laboriosam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "quo", + "laboriosam", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "quo", + "laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 3c15572..1346c61 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="repudiandae", - auth_type="email_password", - cookies="dolores", + auth_id="deserunt", + auth_type="raw_data", + cookies="commodi", custom_proxy={ "host": "proxy.example.com", - "password": "{)8%/]U_X@F@", + "password": "Hz^d.`t94_H.Bm:", "port": 8080, - "username": "dolorem", + "username": "voluptatem", }, - email="cody.christiansen@example.org", + email="beahan.freddie@example.org", force_connect=True, - name="quod", - password="Bh[mg4<|72DNv-a^", + name="similique", + password="\\t#[K&404", proxy_country="uk", - user_agent="commodi", - xbc="corrupti", + user_agent="aspernatur", + xbc="aut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="repudiandae", - auth_type="email_password", - cookies="dolores", + auth_id="deserunt", + auth_type="raw_data", + cookies="commodi", custom_proxy={ "host": "proxy.example.com", - "password": "{)8%/]U_X@F@", + "password": "Hz^d.`t94_H.Bm:", "port": 8080, - "username": "dolorem", + "username": "voluptatem", }, - email="cody.christiansen@example.org", + email="beahan.freddie@example.org", force_connect=True, - name="quod", - password="Bh[mg4<|72DNv-a^", + name="similique", + password="\\t#[K&404", proxy_country="uk", - user_agent="commodi", - xbc="corrupti", + user_agent="aspernatur", + xbc="aut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bf..bea1ef2 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="promotions", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="promotions", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 6cd3530..d31d18d 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="esse", + smart_link_id="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="esse", + smart_link_id="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="esse", + smart_link_id="sit", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="esse", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="impedit", + smart_link_id="odio", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="impedit", + smart_link_id="odio", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="impedit", + smart_link_id="odio", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="impedit", + smart_link_id="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="laudantium", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="esse", + smart_link_id="sit", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="esse", + smart_link_id="sit", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="esse", + smart_link_id="sit", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="esse", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="impedit", + smart_link_id="odio", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="impedit", + smart_link_id="odio", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="impedit", + smart_link_id="odio", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="impedit", + smart_link_id="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="dicta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="temporibus", + smart_link_id="alias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="nulla", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 9b6393b..49f1095 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "slmprqkintw", - "tags": ["flg"], + "search": "yrhbqvubmq", + "tags": ["s"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "efyfvcvj", - "tags": ["qtieoeqnu"], + "search": "jqxkzucmbjsxhhxeqykwx", + "tags": ["pupttwsvdgrbrg"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "bgriegu", - "tags": ["albsndn"], + "include_smart_links": False, + "search": "ifsaaglhvdfmjysasr", + "tags": ["fucigpxkvcbsd"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "oevrmrrtmjh", - "tags": ["kdllstrjrbkiwobfzyoyohkm"], + "search": "iltypln", + "tags": ["q"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "slmprqkintw", - "tags": ["flg"], + "search": "yrhbqvubmq", + "tags": ["s"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "efyfvcvj", - "tags": ["qtieoeqnu"], + "search": "jqxkzucmbjsxhhxeqykwx", + "tags": ["pupttwsvdgrbrg"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "bgriegu", - "tags": ["albsndn"], + "include_smart_links": False, + "search": "ifsaaglhvdfmjysasr", + "tags": ["fucigpxkvcbsd"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "oevrmrrtmjh", - "tags": ["kdllstrjrbkiwobfzyoyohkm"], + "search": "iltypln", + "tags": ["q"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a177582..0f27834 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="ex", + tracking_link_id="placeat", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="ex", + tracking_link_id="placeat", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ullam", + tracking_link_id="eos", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="cupiditate", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f236ae5..0a5216d 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="tempora", + trial_link_id="tempore", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="tempora", + trial_link_id="tempore", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptatibus", + trial_link_id="debitis", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="mollitia", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="autem", + trial_link_id="dolorum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b3c9bd1..b70cf23 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xl", + name="arzef", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xl", + name="arzef", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xl", + name="arzef", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="xl", + name="arzef", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xl", + name="arzef", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xl", + name="arzef", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xl", + name="arzef", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="xl", + name="arzef", ) @pytest.mark.skip(reason="Mock server tests are disabled") From cb29cb5216eaf0bbbc57186287b11e829710b6a1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 11:12:32 +0000 Subject: [PATCH 16/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7c8bcbc..af70973 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b97ef4ada355dc29dcda44aaa240d7ae51affb7573331f039de8f204ec07fb6d.yml -openapi_spec_hash: 62f41c3ea5bbda67c8b977f70fbd67d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ef85e250cd665c3626cc59794b128ccb6e806f8efe43ed8a80c77a09bd191214.yml +openapi_spec_hash: 319f7a2c4c40340d82fb29dc4f6cb551 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a92..2cde6e4 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="suscipit", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="suscipit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index e8dbfc3..395b8f4 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="sequi", + list_id="veritatis", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="sequi", + list_id="veritatis", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="sequi", + list_id="veritatis", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="sequi", + list_id="veritatis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="sequi", + list_id="veritatis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4268a90..91b8aee 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="autem", + post_id="veritatis", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="autem", + post_id="veritatis", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="autem", + post_id="veritatis", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="autem", + post_id="veritatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="autem", + post_id="veritatis", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 029ec61..67b43dc 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="repellat", + story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="repellat", + story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="repellat", + story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="repellat", + story_id="fugiat", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="repellat", + path_story_id="fugiat", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="repellat", + story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="repellat", + story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="repellat", + story_id="fugiat", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="repellat", + story_id="fugiat", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 92eea1a..90edac7 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "laboriosam", + "quas", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "laboriosam", + "quas", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "laboriosam", + "quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "laboriosam", + "quas", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "laboriosam", + "quas", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "laboriosam", + "quas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 1346c61..475f09b 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="deserunt", + auth_id="et", auth_type="raw_data", cookies="commodi", custom_proxy={ "host": "proxy.example.com", - "password": "Hz^d.`t94_H.Bm:", + "password": "|65jv'W/z~7dg+Y1)!", "port": 8080, - "username": "voluptatem", + "username": "quo", }, - email="beahan.freddie@example.org", - force_connect=True, - name="similique", - password="\\t#[K&404", - proxy_country="uk", - user_agent="aspernatur", - xbc="aut", + email="lindgren.simeon@example.org", + force_connect=False, + name="iste", + password="-&J~}F", + proxy_country="us", + user_agent="dolore", + xbc="doloribus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="deserunt", + auth_id="et", auth_type="raw_data", cookies="commodi", custom_proxy={ "host": "proxy.example.com", - "password": "Hz^d.`t94_H.Bm:", + "password": "|65jv'W/z~7dg+Y1)!", "port": 8080, - "username": "voluptatem", + "username": "quo", }, - email="beahan.freddie@example.org", - force_connect=True, - name="similique", - password="\\t#[K&404", - proxy_country="uk", - user_agent="aspernatur", - xbc="aut", + email="lindgren.simeon@example.org", + force_connect=False, + name="iste", + password="-&J~}F", + proxy_country="us", + user_agent="dolore", + xbc="doloribus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="tags", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="tags", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index d31d18d..584bbd2 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="eos", + smart_link_id="totam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="eos", + smart_link_id="totam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="eos", + smart_link_id="totam", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="eos", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="est", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="est", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="sit", + smart_link_id="est", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sit", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="odio", + smart_link_id="quae", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="odio", + smart_link_id="quae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="odio", + smart_link_id="quae", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="odio", + smart_link_id="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="eos", + smart_link_id="totam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="eos", + smart_link_id="totam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="eos", + smart_link_id="totam", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="eos", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="est", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sit", + smart_link_id="est", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="sit", + smart_link_id="est", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sit", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="odio", + smart_link_id="quae", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="odio", + smart_link_id="quae", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="odio", + smart_link_id="quae", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="odio", + smart_link_id="quae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="dicta", + smart_link_id="eaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="alias", + smart_link_id="veniam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 49f1095..a02fd68 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "yrhbqvubmq", - "tags": ["s"], + "search": "ggnthnpivffvocdajzwi", + "tags": ["bp"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "jqxkzucmbjsxhhxeqykwx", - "tags": ["pupttwsvdgrbrg"], + "search": "qnptanmcsyjl", + "tags": ["egkedzcxgaijzkfgx"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "ifsaaglhvdfmjysasr", - "tags": ["fucigpxkvcbsd"], + "search": "xwtfwjqskhjpnyovhvxqkzam", + "tags": ["jmzyiunmzwidrqdnfhu"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "iltypln", - "tags": ["q"], + "include_smart_links": False, + "search": "htmsqmzu", + "tags": ["sf"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "yrhbqvubmq", - "tags": ["s"], + "search": "ggnthnpivffvocdajzwi", + "tags": ["bp"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "jqxkzucmbjsxhhxeqykwx", - "tags": ["pupttwsvdgrbrg"], + "search": "qnptanmcsyjl", + "tags": ["egkedzcxgaijzkfgx"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "ifsaaglhvdfmjysasr", - "tags": ["fucigpxkvcbsd"], + "search": "xwtfwjqskhjpnyovhvxqkzam", + "tags": ["jmzyiunmzwidrqdnfhu"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "iltypln", - "tags": ["q"], + "include_smart_links": False, + "search": "htmsqmzu", + "tags": ["sf"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0f27834..3f3627b 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="placeat", + tracking_link_id="officia", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="placeat", + tracking_link_id="officia", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="eos", + tracking_link_id="architecto", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="ab", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0a5216d..7b9ee45 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="tempore", + trial_link_id="sunt", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="tempore", + trial_link_id="sunt", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="debitis", + trial_link_id="velit", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="mollitia", + trial_link_id="eius", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="sit", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b70cf23..cbc4ac0 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="arzef", + name="uwshox", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="arzef", + name="uwshox", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="arzef", + name="uwshox", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="arzef", + name="uwshox", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="arzef", + name="uwshox", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="arzef", + name="uwshox", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="arzef", + name="uwshox", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="arzef", + name="uwshox", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9ce94a833a666de930b770d1ba2c59596ff2d330 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 16:12:37 +0000 Subject: [PATCH 17/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index af70973..7b5b2f2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ef85e250cd665c3626cc59794b128ccb6e806f8efe43ed8a80c77a09bd191214.yml -openapi_spec_hash: 319f7a2c4c40340d82fb29dc4f6cb551 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-675cb8ae7441cf596e1a10c0194d8af0f9d6c95b258b3699731ee30ed684ae71.yml +openapi_spec_hash: c9d7797180464b750e0ec0af58540375 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 2cde6e4..1807ff0 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="eos", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="suscipit", + message_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="eos", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 395b8f4..28a6029 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="veritatis", + list_id="laborum", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="veritatis", + list_id="laborum", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="veritatis", + list_id="laborum", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="veritatis", + list_id="laborum", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="veritatis", + list_id="laborum", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 91b8aee..4785a9c 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="veritatis", + post_id="nihil", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="veritatis", + post_id="nihil", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="veritatis", + post_id="nihil", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="veritatis", + post_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="veritatis", + post_id="nihil", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=48, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 67b43dc..7dce1bd 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="fugiat", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="fugiat", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="fugiat", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="fugiat", + story_id="pariatur", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="fugiat", + path_story_id="pariatur", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="fugiat", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="fugiat", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="fugiat", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="fugiat", + story_id="pariatur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 90edac7..5e31d2e 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "quas", + "voluptatem", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "quas", + "voluptatem", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "quas", + "voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "quas", + "voluptatem", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "quas", + "voluptatem", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "quas", + "voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 475f09b..f0fcbcb 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="et", + auth_id="beatae", auth_type="raw_data", - cookies="commodi", + cookies="quis", custom_proxy={ "host": "proxy.example.com", - "password": "|65jv'W/z~7dg+Y1)!", + "password": "ouO`&~S)>]e~8*+q$jy;", "port": 8080, - "username": "quo", + "username": "itaque", }, - email="lindgren.simeon@example.org", - force_connect=False, - name="iste", - password="-&J~}F", + email="loyal68@example.net", + force_connect=True, + name="sed", + password="K-5K$ZPz+#M?n5}", proxy_country="us", - user_agent="dolore", - xbc="doloribus", + user_agent="reprehenderit", + xbc="culpa", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="et", + auth_id="beatae", auth_type="raw_data", - cookies="commodi", + cookies="quis", custom_proxy={ "host": "proxy.example.com", - "password": "|65jv'W/z~7dg+Y1)!", + "password": "ouO`&~S)>]e~8*+q$jy;", "port": 8080, - "username": "quo", + "username": "itaque", }, - email="lindgren.simeon@example.org", - force_connect=False, - name="iste", - password="-&J~}F", + email="loyal68@example.net", + force_connect=True, + name="sed", + password="K-5K$ZPz+#M?n5}", proxy_country="us", - user_agent="dolore", - xbc="doloribus", + user_agent="reprehenderit", + xbc="culpa", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 584bbd2..ac05f5e 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="est", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="est", + smart_link_id="magnam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="est", + smart_link_id="magnam", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="est", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="est", + smart_link_id="a", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="est", + smart_link_id="a", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="est", + smart_link_id="a", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="est", + smart_link_id="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="totam", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="est", + smart_link_id="magnam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="est", + smart_link_id="magnam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="est", + smart_link_id="magnam", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="est", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quae", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="eaque", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="veniam", + smart_link_id="accusantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="est", + smart_link_id="a", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="est", + smart_link_id="a", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="est", + smart_link_id="a", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="est", + smart_link_id="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index a02fd68..4f21739 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ggnthnpivffvocdajzwi", - "tags": ["bp"], + "search": "oonettmo", + "tags": ["godbycitbenwhuqjsylfdjy"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qnptanmcsyjl", - "tags": ["egkedzcxgaijzkfgx"], + "search": "osqipasbihbvbxtauemjmes", + "tags": ["hizmsksacydxarxvtsbv"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "xwtfwjqskhjpnyovhvxqkzam", - "tags": ["jmzyiunmzwidrqdnfhu"], + "search": "ofedsxajdvluhrhbbhmkuq", + "tags": ["xmdqtbhuslvjvwbrglrrzvx"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "htmsqmzu", - "tags": ["sf"], + "search": "tioldrkqggabonzvj", + "tags": ["tgghybhogfatt"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ggnthnpivffvocdajzwi", - "tags": ["bp"], + "search": "oonettmo", + "tags": ["godbycitbenwhuqjsylfdjy"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qnptanmcsyjl", - "tags": ["egkedzcxgaijzkfgx"], + "search": "osqipasbihbvbxtauemjmes", + "tags": ["hizmsksacydxarxvtsbv"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "xwtfwjqskhjpnyovhvxqkzam", - "tags": ["jmzyiunmzwidrqdnfhu"], + "search": "ofedsxajdvluhrhbbhmkuq", + "tags": ["xmdqtbhuslvjvwbrglrrzvx"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "htmsqmzu", - "tags": ["sf"], + "search": "tioldrkqggabonzvj", + "tags": ["tgghybhogfatt"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 3f3627b..eebe6c5 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="officia", + tracking_link_id="quia", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="officia", + tracking_link_id="quia", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="architecto", + tracking_link_id="reprehenderit", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ab", + tracking_link_id="inventore", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7b9ee45..f55ce4b 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="sunt", + trial_link_id="optio", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="sunt", + trial_link_id="optio", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="sunt", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="sunt", + trial_link_id="optio", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="velit", + trial_link_id="dolorem", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="eius", + trial_link_id="laborum", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="sit", + trial_link_id="id", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index cbc4ac0..aa2643f 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="uwshox", + name="juw", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="uwshox", + name="juw", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="uwshox", + name="juw", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="uwshox", + name="juw", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="uwshox", + name="juw", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="uwshox", + name="juw", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="uwshox", + name="juw", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="uwshox", + name="juw", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 62090dc02ca59eb6efec90625d71d312043b55a1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 20:12:36 +0000 Subject: [PATCH 18/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7b5b2f2..78dfd38 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-675cb8ae7441cf596e1a10c0194d8af0f9d6c95b258b3699731ee30ed684ae71.yml -openapi_spec_hash: c9d7797180464b750e0ec0af58540375 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d34944375289bdc9263e671e1ba4651a791ca2b50ae942618b57a02a78944cea.yml +openapi_spec_hash: 5d40232815622281f16d43e62189f2c4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1807ff0..ce39866 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eos", + message_id="aut", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="eos", + message_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eos", + message_id="aut", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 28a6029..1f461b0 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="laborum", + list_id="corporis", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="laborum", + list_id="corporis", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="laborum", + list_id="corporis", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="laborum", + list_id="corporis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="laborum", + list_id="corporis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4785a9c..25fa36a 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="nihil", + post_id="molestias", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="nihil", + post_id="molestias", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="nihil", + post_id="molestias", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="nihil", + post_id="molestias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="nihil", + post_id="molestias", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..b5f3d61 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 7dce1bd..5e2f590 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="pariatur", + story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="pariatur", + story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="explicabo", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="explicabo", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="pariatur", + story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="pariatur", + story_id="explicabo", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="explicabo", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 5e31d2e..0e4a4bd 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "voluptatem", + "vero", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "voluptatem", + "vero", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "voluptatem", + "vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "voluptatem", + "vero", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "voluptatem", + "vero", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "voluptatem", + "vero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index f0fcbcb..a87060f 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="beatae", - auth_type="raw_data", - cookies="quis", + auth_id="iure", + auth_type="email_password", + cookies="sapiente", custom_proxy={ "host": "proxy.example.com", - "password": "ouO`&~S)>]e~8*+q$jy;", + "password": "{f{ssxn25", "port": 8080, - "username": "itaque", + "username": "quis", }, - email="loyal68@example.net", + email="qstrosin@example.com", force_connect=True, - name="sed", - password="K-5K$ZPz+#M?n5}", + name="minus", + password="d7Swx:v}L-k?CpL|^", proxy_country="us", - user_agent="reprehenderit", - xbc="culpa", + user_agent="tempora", + xbc="non", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="beatae", - auth_type="raw_data", - cookies="quis", + auth_id="iure", + auth_type="email_password", + cookies="sapiente", custom_proxy={ "host": "proxy.example.com", - "password": "ouO`&~S)>]e~8*+q$jy;", + "password": "{f{ssxn25", "port": 8080, - "username": "itaque", + "username": "quis", }, - email="loyal68@example.net", + email="qstrosin@example.com", force_connect=True, - name="sed", - password="K-5K$ZPz+#M?n5}", + name="minus", + password="d7Swx:v}L-k?CpL|^", proxy_country="us", - user_agent="reprehenderit", - xbc="culpa", + user_agent="tempora", + xbc="non", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..aaff3bf 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="promotions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="promotions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index ac05f5e..10f983d 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="magnam", + smart_link_id="id", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="magnam", + smart_link_id="id", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="magnam", + smart_link_id="id", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="magnam", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="sit", + smart_link_id="aut", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sit", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="blanditiis", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="magnam", + smart_link_id="id", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="magnam", + smart_link_id="id", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="magnam", + smart_link_id="id", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="magnam", + smart_link_id="id", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quisquam", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="sit", + smart_link_id="aut", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sit", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="accusantium", + smart_link_id="assumenda", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="a", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 4f21739..ef1f2d1 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "oonettmo", - "tags": ["godbycitbenwhuqjsylfdjy"], + "search": "glzjjfz", + "tags": ["macjms"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "osqipasbihbvbxtauemjmes", - "tags": ["hizmsksacydxarxvtsbv"], + "search": "vzqvknjw", + "tags": ["sf"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "ofedsxajdvluhrhbbhmkuq", - "tags": ["xmdqtbhuslvjvwbrglrrzvx"], + "include_smart_links": True, + "search": "bsytubzhqtba", + "tags": ["ixmjftajlpfjqpk"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "tioldrkqggabonzvj", - "tags": ["tgghybhogfatt"], + "include_smart_links": True, + "search": "jlde", + "tags": ["kxlawdiljvvhrtxnv"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "oonettmo", - "tags": ["godbycitbenwhuqjsylfdjy"], + "search": "glzjjfz", + "tags": ["macjms"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "osqipasbihbvbxtauemjmes", - "tags": ["hizmsksacydxarxvtsbv"], + "search": "vzqvknjw", + "tags": ["sf"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "ofedsxajdvluhrhbbhmkuq", - "tags": ["xmdqtbhuslvjvwbrglrrzvx"], + "include_smart_links": True, + "search": "bsytubzhqtba", + "tags": ["ixmjftajlpfjqpk"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "tioldrkqggabonzvj", - "tags": ["tgghybhogfatt"], + "include_smart_links": True, + "search": "jlde", + "tags": ["kxlawdiljvvhrtxnv"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index eebe6c5..e07fe14 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quia", + tracking_link_id="natus", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quia", + tracking_link_id="natus", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="sit", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="consequatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index f55ce4b..7b3ab26 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="in", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="in", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="in", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="optio", + trial_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="in", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorem", + trial_link_id="facilis", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="laborum", + trial_link_id="perspiciatis", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="id", + trial_link_id="nesciunt", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index aa2643f..6e07d71 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="juw", + name="ec", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="juw", + name="ec", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="juw", + name="ec", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="juw", + name="ec", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="juw", + name="ec", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="juw", + name="ec", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="juw", + name="ec", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="juw", + name="ec", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3e7e17b1e3ab8993aba06ffec2ef5378d18f93d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Jun 2026 21:12:40 +0000 Subject: [PATCH 19/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 56 +++++------ tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 246 insertions(+), 246 deletions(-) diff --git a/.stats.yml b/.stats.yml index 78dfd38..add21bf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-d34944375289bdc9263e671e1ba4651a791ca2b50ae942618b57a02a78944cea.yml -openapi_spec_hash: 5d40232815622281f16d43e62189f2c4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e92803f481c7385ea22b1fdde55ec063f05b1ecf5b66a7ab5f22810206cde999.yml +openapi_spec_hash: fed9c7c8439462ab4f3cf2c960eda52e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index ce39866..6efc6a8 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aut", + message_id="praesentium", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="aut", + message_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aut", + message_id="praesentium", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 1f461b0..1832aee 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="corporis", + list_id="quis", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="corporis", + list_id="quis", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="corporis", + list_id="quis", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="corporis", + list_id="quis", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="corporis", + list_id="quis", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 25fa36a..909ead5 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="molestias", + post_id="temporibus", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="molestias", + post_id="temporibus", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="molestias", + post_id="temporibus", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="molestias", + post_id="temporibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="molestias", + post_id="temporibus", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 5e2f590..fb4be00 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="explicabo", + story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="explicabo", + story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="explicabo", + story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="explicabo", + story_id="itaque", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="explicabo", + path_story_id="itaque", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="explicabo", + story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="explicabo", + story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="explicabo", + story_id="itaque", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="explicabo", + story_id="itaque", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0e4a4bd..15dbf74 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "vero", + "est", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "vero", + "est", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "vero", + "est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "vero", + "est", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "vero", + "est", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "vero", + "est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index a87060f..503f19b 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="iure", + auth_id="voluptate", auth_type="email_password", - cookies="sapiente", + cookies="unde", custom_proxy={ "host": "proxy.example.com", - "password": "{f{ssxn25", + "password": "Ll./g{xCu2", "port": 8080, - "username": "quis", + "username": "officiis", }, - email="qstrosin@example.com", + email="alexys.fadel@example.com", force_connect=True, - name="minus", - password="d7Swx:v}L-k?CpL|^", - proxy_country="us", - user_agent="tempora", - xbc="non", + name="veniam", + password=" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="iure", + auth_id="voluptate", auth_type="email_password", - cookies="sapiente", + cookies="unde", custom_proxy={ "host": "proxy.example.com", - "password": "{f{ssxn25", + "password": "Ll./g{xCu2", "port": 8080, - "username": "quis", + "username": "officiis", }, - email="qstrosin@example.com", + email="alexys.fadel@example.com", force_connect=True, - name="minus", - password="d7Swx:v}L-k?CpL|^", - proxy_country="us", - user_agent="tempora", - xbc="non", + name="veniam", + password=" None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bf..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="promotions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="promotions", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 10f983d..3a10199 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="id", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="id", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="id", + smart_link_id="ut", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="id", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="at", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="at", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quis", + smart_link_id="at", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quis", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="ut", + smart_link_id="occaecati", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="id", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="id", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="id", + smart_link_id="ut", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="id", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="at", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="at", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quis", + smart_link_id="at", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quis", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="aut", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="assumenda", + smart_link_id="consectetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index ef1f2d1..722569b 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "glzjjfz", - "tags": ["macjms"], + "search": "ccyotgpfkysngijpwg", + "tags": ["c"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "vzqvknjw", - "tags": ["sf"], + "search": "tar", + "tags": ["iejgxtgtoym"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "bsytubzhqtba", - "tags": ["ixmjftajlpfjqpk"], + "search": "ccielr", + "tags": ["rgfqobfjkfhlxp"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "jlde", - "tags": ["kxlawdiljvvhrtxnv"], + "search": "tlsayaecxzh", + "tags": ["rydrfjvmf"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "glzjjfz", - "tags": ["macjms"], + "search": "ccyotgpfkysngijpwg", + "tags": ["c"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "vzqvknjw", - "tags": ["sf"], + "search": "tar", + "tags": ["iejgxtgtoym"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "bsytubzhqtba", - "tags": ["ixmjftajlpfjqpk"], + "search": "ccielr", + "tags": ["rgfqobfjkfhlxp"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "jlde", - "tags": ["kxlawdiljvvhrtxnv"], + "search": "tlsayaecxzh", + "tags": ["rydrfjvmf"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index e07fe14..0b0fabc 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="natus", + tracking_link_id="inventore", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="natus", + tracking_link_id="inventore", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="sit", + tracking_link_id="iusto", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="consequatur", + tracking_link_id="molestiae", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7b3ab26..92905ef 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="facilis", + trial_link_id="nobis", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="perspiciatis", + trial_link_id="rerum", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nesciunt", + trial_link_id="quo", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 6e07d71..9c19169 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="ec", + name="vpcgpo", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ec", + name="vpcgpo", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ec", + name="vpcgpo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="ec", + name="vpcgpo", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="ec", + name="vpcgpo", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ec", + name="vpcgpo", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="ec", + name="vpcgpo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="ec", + name="vpcgpo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3525475272b3341f91f4b75160f63b106321e139 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:12:34 +0000 Subject: [PATCH 20/48] feat(api): api update --- .stats.yml | 4 +- .../resources/smart_link_postbacks.py | 8 +- .../smart_link_postback_create_params.py | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- .../test_smart_link_postbacks.py | 32 +++---- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 21 files changed, 290 insertions(+), 290 deletions(-) diff --git a/.stats.yml b/.stats.yml index add21bf..1940ec0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e92803f481c7385ea22b1fdde55ec063f05b1ecf5b66a7ab5f22810206cde999.yml -openapi_spec_hash: fed9c7c8439462ab4f3cf2c960eda52e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da3477c07ba03855de3b6cdc521c4721e162cc61e9160e2888f54b2c8015f1e6.yml +openapi_spec_hash: 1438c6cc0a359e8fb18784ea4559a206 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/smart_link_postbacks.py b/src/onlyfansapi/resources/smart_link_postbacks.py index 7c10116..9fc6357 100644 --- a/src/onlyfansapi/resources/smart_link_postbacks.py +++ b/src/onlyfansapi/resources/smart_link_postbacks.py @@ -73,8 +73,8 @@ def create( smart_link_scope: `global` fires for all Smart Links. `campaign_specific` fires only for selected Smart Links. - url: The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and - `{ttclid}` are replaced when the postback is dispatched. + url: The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, + `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. @@ -282,8 +282,8 @@ async def create( smart_link_scope: `global` fires for all Smart Links. `campaign_specific` fires only for selected Smart Links. - url: The destination URL. Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and - `{ttclid}` are replaced when the postback is dispatched. + url: The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, + `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. diff --git a/src/onlyfansapi/types/smart_link_postback_create_params.py b/src/onlyfansapi/types/smart_link_postback_create_params.py index fb5f0e6..ac84157 100644 --- a/src/onlyfansapi/types/smart_link_postback_create_params.py +++ b/src/onlyfansapi/types/smart_link_postback_create_params.py @@ -22,8 +22,8 @@ class SmartLinkPostbackCreateParams(TypedDict, total=False): url: Required[str] """The destination URL. - Variables such as `{click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are - replaced when the postback is dispatched. + Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` + are replaced when the postback is dispatched. """ smart_link_ids: SequenceNotStr[str] diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6efc6a8..f49aae5 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="praesentium", + message_id="porro", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="praesentium", + message_id="porro", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="praesentium", + message_id="porro", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 1832aee..15dbe2a 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quis", + list_id="nam", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quis", + list_id="nam", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quis", + list_id="nam", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quis", + list_id="nam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quis", + list_id="nam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 909ead5..6431515 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="temporibus", + post_id="distinctio", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="temporibus", + post_id="distinctio", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="temporibus", + post_id="distinctio", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="temporibus", + post_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="temporibus", + post_id="distinctio", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index fb4be00..679540e 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="itaque", + story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="itaque", + story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="itaque", + story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="itaque", + story_id="perferendis", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="itaque", + path_story_id="perferendis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="itaque", + story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="itaque", + story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="itaque", + story_id="perferendis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="itaque", + story_id="perferendis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 15dbf74..55f8b17 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "est", + "ullam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "est", + "ullam", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "est", + "ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "est", + "ullam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "est", + "ullam", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "est", + "ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 503f19b..5fe2abb 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="voluptate", + auth_id="omnis", auth_type="email_password", - cookies="unde", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "Ll./g{xCu2", + "password": "TI3EnYU9H?pU|<", "port": 8080, - "username": "officiis", + "username": "nam", }, - email="alexys.fadel@example.com", - force_connect=True, - name="veniam", - password=" None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="voluptate", + auth_id="omnis", auth_type="email_password", - cookies="unde", + cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "Ll./g{xCu2", + "password": "TI3EnYU9H?pU|<", "port": 8080, - "username": "officiis", + "username": "nam", }, - email="alexys.fadel@example.com", - force_connect=True, - name="veniam", - password=" None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_link_postbacks.py b/tests/api_resources/test_smart_link_postbacks.py index 5a5ea6f..d6a8f41 100644 --- a/tests/api_resources/test_smart_link_postbacks.py +++ b/tests/api_resources/test_smart_link_postbacks.py @@ -29,7 +29,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: smart_link_postback = client.smart_link_postbacks.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", ) assert_matches_type(SmartLinkPostbackCreateResponse, smart_link_postback, path=["response"]) @@ -39,7 +39,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: smart_link_postback = client.smart_link_postbacks.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackCreateResponse, smart_link_postback, path=["response"]) @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.smart_link_postbacks.with_raw_response.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", ) assert response.is_closed is True @@ -64,7 +64,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.smart_link_postbacks.with_streaming_response.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -115,7 +115,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", ) assert_matches_type(SmartLinkPostbackUpdateResponse, smart_link_postback, path=["response"]) @@ -126,7 +126,7 @@ def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackUpdateResponse, smart_link_postback, path=["response"]) @@ -138,7 +138,7 @@ def test_raw_response_update(self, client: OnlyFansAPI) -> None: postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", ) assert response.is_closed is True @@ -153,7 +153,7 @@ def test_streaming_response_update(self, client: OnlyFansAPI) -> None: postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -237,7 +237,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: smart_link_postback = await async_client.smart_link_postbacks.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", ) assert_matches_type(SmartLinkPostbackCreateResponse, smart_link_postback, path=["response"]) @@ -247,7 +247,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP smart_link_postback = await async_client.smart_link_postbacks.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackCreateResponse, smart_link_postback, path=["response"]) @@ -258,7 +258,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None response = await async_client.smart_link_postbacks.with_raw_response.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", ) assert response.is_closed is True @@ -272,7 +272,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async with async_client.smart_link_postbacks.with_streaming_response.create( conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", - url="https://example.com/postback?click={click_id}&type={conversion_type}&gclid={gclid}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -323,7 +323,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", ) assert_matches_type(SmartLinkPostbackUpdateResponse, smart_link_postback, path=["response"]) @@ -334,7 +334,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAP postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackUpdateResponse, smart_link_postback, path=["response"]) @@ -346,7 +346,7 @@ async def test_raw_response_update(self, async_client: AsyncOnlyFansAPI) -> None postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", ) assert response.is_closed is True @@ -361,7 +361,7 @@ async def test_streaming_response_update(self, async_client: AsyncOnlyFansAPI) - postback_id=123, conversion_types=["new_subscriber"], smart_link_scope="global", - url="https://example.com/postback?click={click_id}&type={conversion_type}", + url="https://example.com/postback?click={external_click_id}&type={conversion_type}", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 3a10199..aaa43f8 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="quo", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="quo", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ut", + smart_link_id="quo", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ut", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="at", + smart_link_id="inventore", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="at", + smart_link_id="inventore", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="at", + smart_link_id="inventore", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="at", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="occaecati", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="quo", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="quo", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ut", + smart_link_id="quo", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ut", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="at", + smart_link_id="inventore", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="at", + smart_link_id="inventore", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="at", + smart_link_id="inventore", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="at", + smart_link_id="inventore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="doloremque", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="consectetur", + smart_link_id="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="dolores", + smart_link_id="molestias", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 722569b..10edfa1 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ccyotgpfkysngijpwg", - "tags": ["c"], + "search": "ezsdqbawddxahqstmtkpep", + "tags": ["vqpmsxqhzqkxaw"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tar", - "tags": ["iejgxtgtoym"], + "search": "bspunxbctpwmbcyzjvhedjj", + "tags": ["roql"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ccielr", - "tags": ["rgfqobfjkfhlxp"], + "search": "bqobexdpaipsmhhtfuape", + "tags": ["egwwllyjcrmlf"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "tlsayaecxzh", - "tags": ["rydrfjvmf"], + "search": "huebrrxj", + "tags": ["zph"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ccyotgpfkysngijpwg", - "tags": ["c"], + "search": "ezsdqbawddxahqstmtkpep", + "tags": ["vqpmsxqhzqkxaw"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tar", - "tags": ["iejgxtgtoym"], + "search": "bspunxbctpwmbcyzjvhedjj", + "tags": ["roql"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ccielr", - "tags": ["rgfqobfjkfhlxp"], + "search": "bqobexdpaipsmhhtfuape", + "tags": ["egwwllyjcrmlf"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "tlsayaecxzh", - "tags": ["rydrfjvmf"], + "search": "huebrrxj", + "tags": ["zph"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 0b0fabc..3899d68 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="inventore", + tracking_link_id="reprehenderit", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="atque", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="molestiae", + tracking_link_id="beatae", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 92905ef..bab6a75 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="in", + trial_link_id="dolorem", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="in", + trial_link_id="dolorem", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="in", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="in", + trial_link_id="dolorem", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="nobis", + trial_link_id="aut", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="rerum", + trial_link_id="nihil", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quo", + trial_link_id="laboriosam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9c19169..0695bd7 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="vpcgpo", + name="nrogtggpiijwuqmulos", ) @pytest.mark.skip(reason="Mock server tests are disabled") From c06f3abf1381148f5e48b85f0086b1af17e2a0d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 16:12:33 +0000 Subject: [PATCH 21/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 36 +++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 254 insertions(+), 254 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1940ec0..c13af48 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-da3477c07ba03855de3b6cdc521c4721e162cc61e9160e2888f54b2c8015f1e6.yml -openapi_spec_hash: 1438c6cc0a359e8fb18784ea4559a206 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c457858fdd0d57f8f4b687cbcf6b65e5b1cf86f7cefe0d3635cd484a401fd23b.yml +openapi_spec_hash: f5f234adf7d7358ec8fb70bfb1e07aa5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index f49aae5..1ef5bbf 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="porro", + message_id="quo", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="porro", + message_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="porro", + message_id="quo", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 15dbe2a..261d102 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="nam", + list_id="quia", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="nam", + list_id="quia", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="nam", + list_id="quia", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="nam", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="nam", + list_id="quia", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6431515..7b514bd 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="distinctio", + post_id="nobis", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="distinctio", + post_id="nobis", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="distinctio", + post_id="nobis", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="distinctio", + post_id="nobis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="distinctio", + post_id="nobis", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 679540e..1050b62 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="perferendis", + story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="perferendis", + story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="perferendis", + story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="perferendis", + story_id="sunt", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="perferendis", + path_story_id="sunt", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="perferendis", + story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="perferendis", + story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="perferendis", + story_id="sunt", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="perferendis", + story_id="sunt", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 55f8b17..0c13ae2 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "ullam", + "quisquam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "ullam", + "quisquam", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "ullam", + "quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "ullam", + "quisquam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "ullam", + "quisquam", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "ullam", + "quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 5fe2abb..b9630c2 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="omnis", + auth_id="consectetur", auth_type="email_password", cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "TI3EnYU9H?pU|<", + "password": "Rq`U<", "port": 8080, - "username": "nam", + "username": "ea", }, - email="vmarquardt@example.org", + email="tillman.jaquan@example.net", force_connect=False, - name="perspiciatis", - password="ZL/)iSx5#{@8|!", - proxy_country="us", - user_agent="asperiores", - xbc="doloremque", + name="et", + password="#vC_Q/YQZH", + proxy_country="uk", + user_agent="tempora", + xbc="itaque", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="omnis", + auth_id="consectetur", auth_type="email_password", cookies="quo", custom_proxy={ "host": "proxy.example.com", - "password": "TI3EnYU9H?pU|<", + "password": "Rq`U<", "port": 8080, - "username": "nam", + "username": "ea", }, - email="vmarquardt@example.org", + email="tillman.jaquan@example.net", force_connect=False, - name="perspiciatis", - password="ZL/)iSx5#{@8|!", - proxy_country="us", - user_agent="asperiores", - xbc="doloremque", + name="et", + password="#vC_Q/YQZH", + proxy_country="uk", + user_agent="tempora", + xbc="itaque", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..4fb0fa4 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index aaa43f8..7be1abf 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="inventore", + smart_link_id="quia", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="inventore", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="inventore", + smart_link_id="quia", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="inventore", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="in", + smart_link_id="fugiat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="quo", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="inventore", + smart_link_id="quia", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="inventore", + smart_link_id="quia", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="inventore", + smart_link_id="quia", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="inventore", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="laborum", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="vitae", + smart_link_id="laudantium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="molestias", + smart_link_id="similique", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 10edfa1..ba7f862 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ezsdqbawddxahqstmtkpep", - "tags": ["vqpmsxqhzqkxaw"], + "search": "luwydfhp", + "tags": ["z"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "bspunxbctpwmbcyzjvhedjj", - "tags": ["roql"], + "search": "uyhmtzrtwevtrwbitmepzaac", + "tags": ["butkxjajzdftaeclfx"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "bqobexdpaipsmhhtfuape", - "tags": ["egwwllyjcrmlf"], + "search": "gxwtoknhkwwqgpkht", + "tags": ["xcynennnzgkpfeprohot"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "huebrrxj", - "tags": ["zph"], + "search": "lektccsgbkuxrwevvpszw", + "tags": ["ce"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ezsdqbawddxahqstmtkpep", - "tags": ["vqpmsxqhzqkxaw"], + "search": "luwydfhp", + "tags": ["z"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "bspunxbctpwmbcyzjvhedjj", - "tags": ["roql"], + "search": "uyhmtzrtwevtrwbitmepzaac", + "tags": ["butkxjajzdftaeclfx"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "bqobexdpaipsmhhtfuape", - "tags": ["egwwllyjcrmlf"], + "search": "gxwtoknhkwwqgpkht", + "tags": ["xcynennnzgkpfeprohot"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "huebrrxj", - "tags": ["zph"], + "search": "lektccsgbkuxrwevvpszw", + "tags": ["ce"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 3899d68..f01493a 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="reprehenderit", + tracking_link_id="animi", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="atque", + tracking_link_id="et", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="beatae", + tracking_link_id="reprehenderit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index bab6a75..35b37d2 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="illum", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="illum", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="aut", + trial_link_id="et", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="nihil", + trial_link_id="libero", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laboriosam", + trial_link_id="eos", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0695bd7..fb8645e 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="nrogtggpiijwuqmulos", + name="oaoushuzikfwtaepdkm", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 4594ec136232b42f3d456b09516ec08065fdfafd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:12:39 +0000 Subject: [PATCH 22/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 17 files changed, 266 insertions(+), 266 deletions(-) diff --git a/.stats.yml b/.stats.yml index c13af48..920904a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-c457858fdd0d57f8f4b687cbcf6b65e5b1cf86f7cefe0d3635cd484a401fd23b.yml -openapi_spec_hash: f5f234adf7d7358ec8fb70bfb1e07aa5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-53b36aaa9725d64141e250734aabae8661a7c89e51dfe432dfa75bcfdb9dcb45.yml +openapi_spec_hash: 3a472c76c2e292198869edf6e24266a9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1ef5bbf..1b40595 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quo", + message_id="eum", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quo", + message_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quo", + message_id="eum", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 261d102..032d651 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="ex", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="ex", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="ex", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quia", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="ex", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 7b514bd..4e4b7ac 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="nobis", + post_id="molestiae", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="nobis", + post_id="molestiae", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="nobis", + post_id="molestiae", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="nobis", + post_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="nobis", + post_id="molestiae", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 1050b62..775daa0 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="sunt", + path_story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="sunt", + path_story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="sunt", + path_story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="sunt", + path_story_id="nulla", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="sunt", + story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="sunt", + story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="sunt", + story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="sunt", + story_id="nulla", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="sunt", + path_story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sunt", + path_story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="sunt", + path_story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sunt", + path_story_id="nulla", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="sunt", + story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sunt", + story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="sunt", + story_id="nulla", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sunt", + story_id="nulla", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0c13ae2..cb4f0cf 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "quisquam", + "quia", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "quisquam", + "quia", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "quisquam", + "quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "quisquam", + "quia", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "quisquam", + "quia", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "quisquam", + "quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index b9630c2..8b9b099 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="consectetur", - auth_type="email_password", - cookies="quo", + auth_id="quam", + auth_type="raw_data", + cookies="amet", custom_proxy={ "host": "proxy.example.com", - "password": "Rq`U<", + "password": "Iw09#Zg\\|kM>tzyK1iD", "port": 8080, - "username": "ea", + "username": "ut", }, - email="tillman.jaquan@example.net", - force_connect=False, - name="et", - password="#vC_Q/YQZH", + email="rubye.collins@example.org", + force_connect=True, + name="dolorum", + password="DJlV+|+aufdMZTu[]K", proxy_country="uk", - user_agent="tempora", - xbc="itaque", + user_agent="porro", + xbc="soluta", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="consectetur", - auth_type="email_password", - cookies="quo", + auth_id="quam", + auth_type="raw_data", + cookies="amet", custom_proxy={ "host": "proxy.example.com", - "password": "Rq`U<", + "password": "Iw09#Zg\\|kM>tzyK1iD", "port": 8080, - "username": "ea", + "username": "ut", }, - email="tillman.jaquan@example.net", - force_connect=False, - name="et", - password="#vC_Q/YQZH", + email="rubye.collins@example.org", + force_connect=True, + name="dolorum", + password="DJlV+|+aufdMZTu[]K", proxy_country="uk", - user_agent="tempora", - xbc="itaque", + user_agent="porro", + xbc="soluta", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4fb0fa4..0f3980c 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 7be1abf..14c307c 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quia", + smart_link_id="qui", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quia", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quia", + smart_link_id="qui", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quia", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="in", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="in", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="sit", + smart_link_id="in", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sit", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="fugiat", + smart_link_id="enim", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="voluptatem", + smart_link_id="quos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quia", + smart_link_id="qui", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quia", + smart_link_id="qui", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quia", + smart_link_id="qui", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quia", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="in", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sit", + smart_link_id="in", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="sit", + smart_link_id="in", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sit", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="laudantium", + smart_link_id="quam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="similique", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index ba7f862..b4efdad 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "luwydfhp", - "tags": ["z"], + "search": "kzcpgktxfebjbixmzr", + "tags": ["yczwdsihbkhyy"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uyhmtzrtwevtrwbitmepzaac", - "tags": ["butkxjajzdftaeclfx"], + "search": "docypfczj", + "tags": ["cbawtbjoen"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "gxwtoknhkwwqgpkht", - "tags": ["xcynennnzgkpfeprohot"], + "search": "ldkmkwrgj", + "tags": ["ushdeyboopqhamkfvnifa"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "lektccsgbkuxrwevvpszw", - "tags": ["ce"], + "search": "ahbractxicvohwzjypqihmzj", + "tags": ["eadbtiznpupvjpupkxegb"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "luwydfhp", - "tags": ["z"], + "search": "kzcpgktxfebjbixmzr", + "tags": ["yczwdsihbkhyy"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uyhmtzrtwevtrwbitmepzaac", - "tags": ["butkxjajzdftaeclfx"], + "search": "docypfczj", + "tags": ["cbawtbjoen"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "gxwtoknhkwwqgpkht", - "tags": ["xcynennnzgkpfeprohot"], + "search": "ldkmkwrgj", + "tags": ["ushdeyboopqhamkfvnifa"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "lektccsgbkuxrwevvpszw", - "tags": ["ce"], + "search": "ahbractxicvohwzjypqihmzj", + "tags": ["eadbtiznpupvjpupkxegb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f01493a..c804f62 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="animi", + tracking_link_id="quidem", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="animi", + tracking_link_id="quidem", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="et", + tracking_link_id="non", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="reprehenderit", + tracking_link_id="inventore", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 35b37d2..1928aef 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="illum", + trial_link_id="modi", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="illum", + trial_link_id="modi", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="illum", + trial_link_id="modi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="illum", + trial_link_id="modi", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="et", + trial_link_id="tempore", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="libero", + trial_link_id="quam", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="eos", + trial_link_id="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index fb8645e..a857678 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="oaoushuzikfwtaepdkm", + name="a", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oaoushuzikfwtaepdkm", + name="a", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oaoushuzikfwtaepdkm", + name="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="oaoushuzikfwtaepdkm", + name="a", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="oaoushuzikfwtaepdkm", + name="a", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oaoushuzikfwtaepdkm", + name="a", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oaoushuzikfwtaepdkm", + name="a", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="oaoushuzikfwtaepdkm", + name="a", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 43194d71262d5d50f797a8ccba2659a6c3c2887f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 20:12:39 +0000 Subject: [PATCH 23/48] feat(api): api update --- .stats.yml | 4 +- api.md | 2 +- .../resources/media/vault/lists/lists.py | 20 +++- src/onlyfansapi/types/media/vault/__init__.py | 1 + .../types/media/vault/list_update_params.py | 14 +++ .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/media/vault/test_lists.py | 10 ++ tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 21 files changed, 297 insertions(+), 262 deletions(-) create mode 100644 src/onlyfansapi/types/media/vault/list_update_params.py diff --git a/.stats.yml b/.stats.yml index 920904a..e4e8ffa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-53b36aaa9725d64141e250734aabae8661a7c89e51dfe432dfa75bcfdb9dcb45.yml -openapi_spec_hash: 3a472c76c2e292198869edf6e24266a9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6dce7668a28815048567f576320f6a79e42ccf548e3b6dbef252d89e1853271.yml +openapi_spec_hash: 8384edfcec4a69602c57dab9143c101d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/api.md b/api.md index 88b2b58..b589a1e 100644 --- a/api.md +++ b/api.md @@ -579,7 +579,7 @@ Methods: - client.media.vault.lists.create(account, \*\*params) -> ListCreateResponse - client.media.vault.lists.retrieve(list_id, \*, account) -> ListRetrieveResponse -- client.media.vault.lists.update(list_id, \*, account) -> ListUpdateResponse +- client.media.vault.lists.update(list_id, \*, account, \*\*params) -> ListUpdateResponse - client.media.vault.lists.list(account, \*\*params) -> ListListResponse - client.media.vault.lists.delete(list_id, \*, account) -> ListDeleteResponse diff --git a/src/onlyfansapi/resources/media/vault/lists/lists.py b/src/onlyfansapi/resources/media/vault/lists/lists.py index f326e94..b5f709f 100644 --- a/src/onlyfansapi/resources/media/vault/lists/lists.py +++ b/src/onlyfansapi/resources/media/vault/lists/lists.py @@ -23,7 +23,7 @@ async_to_streamed_response_wrapper, ) from ....._base_client import make_request_options -from .....types.media.vault import list_list_params, list_create_params +from .....types.media.vault import list_list_params, list_create_params, list_update_params from .....types.media.vault.list_list_response import ListListResponse from .....types.media.vault.list_create_response import ListCreateResponse from .....types.media.vault.list_delete_response import ListDeleteResponse @@ -135,6 +135,7 @@ def update( list_id: str, *, account: str, + name: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -142,10 +143,13 @@ def update( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> ListUpdateResponse: - """ - Rename a Vault list. + """Rename a Vault list. Args: + name: The new name for the vault list. + + Must not be greater than 255 characters. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -160,6 +164,7 @@ def update( raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}") return self._put( path_template("/api/{account}/media/vault/lists/{list_id}", account=account, list_id=list_id), + body=maybe_transform({"name": name}, list_update_params.ListUpdateParams), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), @@ -358,6 +363,7 @@ async def update( list_id: str, *, account: str, + name: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -365,10 +371,13 @@ async def update( extra_body: Body | None = None, timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> ListUpdateResponse: - """ - Rename a Vault list. + """Rename a Vault list. Args: + name: The new name for the vault list. + + Must not be greater than 255 characters. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -383,6 +392,7 @@ async def update( raise ValueError(f"Expected a non-empty value for `list_id` but received {list_id!r}") return await self._put( path_template("/api/{account}/media/vault/lists/{list_id}", account=account, list_id=list_id), + body=await async_maybe_transform({"name": name}, list_update_params.ListUpdateParams), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), diff --git a/src/onlyfansapi/types/media/vault/__init__.py b/src/onlyfansapi/types/media/vault/__init__.py index 87e91af..1335bbc 100644 --- a/src/onlyfansapi/types/media/vault/__init__.py +++ b/src/onlyfansapi/types/media/vault/__init__.py @@ -5,6 +5,7 @@ from .list_list_params import ListListParams as ListListParams from .list_create_params import ListCreateParams as ListCreateParams from .list_list_response import ListListResponse as ListListResponse +from .list_update_params import ListUpdateParams as ListUpdateParams from .list_create_response import ListCreateResponse as ListCreateResponse from .list_delete_response import ListDeleteResponse as ListDeleteResponse from .list_update_response import ListUpdateResponse as ListUpdateResponse diff --git a/src/onlyfansapi/types/media/vault/list_update_params.py b/src/onlyfansapi/types/media/vault/list_update_params.py new file mode 100644 index 0000000..1e8190f --- /dev/null +++ b/src/onlyfansapi/types/media/vault/list_update_params.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Required, TypedDict + +__all__ = ["ListUpdateParams"] + + +class ListUpdateParams(TypedDict, total=False): + account: Required[str] + + name: Required[str] + """The new name for the vault list. Must not be greater than 255 characters.""" diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1b40595..5f7c8b8 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eum", + message_id="aperiam", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="eum", + message_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="eum", + message_id="aperiam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 032d651..729a944 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="id", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="id", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="id", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="ex", + list_id="id", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="id", account="", media_ids=["string"], ) diff --git a/tests/api_resources/media/vault/test_lists.py b/tests/api_resources/media/vault/test_lists.py index 2602218..a3fa304 100644 --- a/tests/api_resources/media/vault/test_lists.py +++ b/tests/api_resources/media/vault/test_lists.py @@ -127,6 +127,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: list_ = client.media.vault.lists.update( list_id="123", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) assert_matches_type(ListUpdateResponse, list_, path=["response"]) @@ -136,6 +137,7 @@ def test_raw_response_update(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.with_raw_response.update( list_id="123", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) assert response.is_closed is True @@ -149,6 +151,7 @@ def test_streaming_response_update(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.with_streaming_response.update( list_id="123", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -165,12 +168,14 @@ def test_path_params_update(self, client: OnlyFansAPI) -> None: client.media.vault.lists.with_raw_response.update( list_id="123", account="", + name="My renamed list", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"): client.media.vault.lists.with_raw_response.update( list_id="", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -388,6 +393,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: list_ = await async_client.media.vault.lists.update( list_id="123", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) assert_matches_type(ListUpdateResponse, list_, path=["response"]) @@ -397,6 +403,7 @@ async def test_raw_response_update(self, async_client: AsyncOnlyFansAPI) -> None response = await async_client.media.vault.lists.with_raw_response.update( list_id="123", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) assert response.is_closed is True @@ -410,6 +417,7 @@ async def test_streaming_response_update(self, async_client: AsyncOnlyFansAPI) - async with async_client.media.vault.lists.with_streaming_response.update( list_id="123", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -426,12 +434,14 @@ async def test_path_params_update(self, async_client: AsyncOnlyFansAPI) -> None: await async_client.media.vault.lists.with_raw_response.update( list_id="123", account="", + name="My renamed list", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `list_id` but received ''"): await async_client.media.vault.lists.with_raw_response.update( list_id="", account="acct_XXXXXXXXXXXXXXX", + name="My renamed list", ) @pytest.mark.skip(reason="Mock server tests are disabled") diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4e4b7ac..58959cc 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="molestiae", + post_id="aspernatur", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="molestiae", + post_id="aspernatur", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="molestiae", + post_id="aspernatur", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="molestiae", + post_id="aspernatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="molestiae", + post_id="aspernatur", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 775daa0..122983a 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="nulla", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="nulla", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="nulla", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="nulla", + path_story_id="quia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="nulla", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="nulla", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="nulla", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="nulla", + story_id="quia", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="nulla", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nulla", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="nulla", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nulla", + path_story_id="quia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="nulla", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nulla", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="nulla", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nulla", + story_id="quia", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index cb4f0cf..04c760b 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "quia", + "dignissimos", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "quia", + "dignissimos", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "quia", + "dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "quia", + "dignissimos", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "quia", + "dignissimos", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "quia", + "dignissimos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 8b9b099..d38181d 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="quam", - auth_type="raw_data", - cookies="amet", + auth_id="explicabo", + auth_type="mobile_app", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "Iw09#Zg\\|kM>tzyK1iD", + "password": 'Y"k__TNWXW]', "port": 8080, - "username": "ut", + "username": "eum", }, - email="rubye.collins@example.org", + email="hellen51@example.net", force_connect=True, - name="dolorum", - password="DJlV+|+aufdMZTu[]K", + name="mollitia", + password="0_:u~FCrahv", proxy_country="uk", - user_agent="porro", - xbc="soluta", + user_agent="voluptas", + xbc="possimus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="quam", - auth_type="raw_data", - cookies="amet", + auth_id="explicabo", + auth_type="mobile_app", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "Iw09#Zg\\|kM>tzyK1iD", + "password": 'Y"k__TNWXW]', "port": 8080, - "username": "ut", + "username": "eum", }, - email="rubye.collins@example.org", + email="hellen51@example.net", force_connect=True, - name="dolorum", - password="DJlV+|+aufdMZTu[]K", + name="mollitia", + password="0_:u~FCrahv", proxy_country="uk", - user_agent="porro", - xbc="soluta", + user_agent="voluptas", + xbc="possimus", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="tips", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="tips", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 14c307c..cda1576 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="enim", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="enim", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="enim", + smart_link_id="et", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="enim", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="quos", + smart_link_id="natus", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="quos", + smart_link_id="natus", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="quos", + smart_link_id="natus", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="quos", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="qui", + smart_link_id="amet", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="qui", + smart_link_id="amet", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="qui", + smart_link_id="amet", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="qui", + smart_link_id="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="in", + smart_link_id="ullam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="in", + smart_link_id="ullam", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="in", + smart_link_id="ullam", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="in", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="enim", + smart_link_id="et", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="enim", + smart_link_id="et", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="enim", + smart_link_id="et", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="enim", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="quos", + smart_link_id="natus", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="quos", + smart_link_id="natus", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="quos", + smart_link_id="natus", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="quos", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="qui", + smart_link_id="amet", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="qui", + smart_link_id="amet", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="qui", + smart_link_id="amet", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="qui", + smart_link_id="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="in", + smart_link_id="ullam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="in", + smart_link_id="ullam", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="in", + smart_link_id="ullam", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="in", + smart_link_id="ullam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quam", + smart_link_id="eligendi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="non", + smart_link_id="repellat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index b4efdad..5d17d97 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "kzcpgktxfebjbixmzr", - "tags": ["yczwdsihbkhyy"], + "search": "ghkspznot", + "tags": ["xdcyct"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "docypfczj", - "tags": ["cbawtbjoen"], + "search": "ollftrgbryvdp", + "tags": ["anxiykkkqv"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ldkmkwrgj", - "tags": ["ushdeyboopqhamkfvnifa"], + "search": "odxxtwombpxqqemasrutnd", + "tags": ["sjxtgifqfvojvfpbbo"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ahbractxicvohwzjypqihmzj", - "tags": ["eadbtiznpupvjpupkxegb"], + "search": "fhmxcikxewhwqtrrvav", + "tags": ["hbx"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "kzcpgktxfebjbixmzr", - "tags": ["yczwdsihbkhyy"], + "search": "ghkspznot", + "tags": ["xdcyct"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "docypfczj", - "tags": ["cbawtbjoen"], + "search": "ollftrgbryvdp", + "tags": ["anxiykkkqv"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ldkmkwrgj", - "tags": ["ushdeyboopqhamkfvnifa"], + "search": "odxxtwombpxqqemasrutnd", + "tags": ["sjxtgifqfvojvfpbbo"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ahbractxicvohwzjypqihmzj", - "tags": ["eadbtiznpupvjpupkxegb"], + "search": "fhmxcikxewhwqtrrvav", + "tags": ["hbx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c804f62..48e0aca 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quidem", + tracking_link_id="nemo", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quidem", + tracking_link_id="nemo", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="a", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="inventore", + tracking_link_id="amet", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 1928aef..6f08206 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="modi", + trial_link_id="ut", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="modi", + trial_link_id="ut", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="modi", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="modi", + trial_link_id="ut", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="tempore", + trial_link_id="id", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quam", + trial_link_id="doloribus", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="necessitatibus", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index a857678..b4ffd23 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="a", + name="iirlhpwuag", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="a", + name="iirlhpwuag", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="a", + name="iirlhpwuag", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="a", + name="iirlhpwuag", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="a", + name="iirlhpwuag", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="a", + name="iirlhpwuag", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="a", + name="iirlhpwuag", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="a", + name="iirlhpwuag", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 9e9450351d93e7a6bd02ac847569349ec71fddb5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 03:12:37 +0000 Subject: [PATCH 24/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 248 insertions(+), 248 deletions(-) diff --git a/.stats.yml b/.stats.yml index e4e8ffa..e8458a5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-a6dce7668a28815048567f576320f6a79e42ccf548e3b6dbef252d89e1853271.yml -openapi_spec_hash: 8384edfcec4a69602c57dab9143c101d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ec272d9816b974c4a10229c2fbf38ed7fca5382573f61a61f0d60f4ff7c7dac.yml +openapi_spec_hash: 63d89cac4960c7fd029e686c22109a84 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 5f7c8b8..2cde6e4 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="aperiam", + message_id="suscipit", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 729a944..fc0fe65 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="id", + list_id="nihil", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="id", + list_id="nihil", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="id", + list_id="nihil", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="id", + list_id="nihil", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="id", + list_id="nihil", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 58959cc..4e18702 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="aspernatur", + post_id="velit", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="aspernatur", + post_id="velit", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="aspernatur", + post_id="velit", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="aspernatur", + post_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="aspernatur", + post_id="velit", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 04c760b..7506d9b 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "dignissimos", + "aut", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "dignissimos", + "aut", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "dignissimos", + "aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "dignissimos", + "aut", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "dignissimos", + "aut", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "dignissimos", + "aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index d38181d..5831d6e 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="explicabo", - auth_type="mobile_app", - cookies="quia", + auth_id="eveniet", + auth_type="email_password", + cookies="error", custom_proxy={ "host": "proxy.example.com", - "password": 'Y"k__TNWXW]', + "password": "Ml7|7&LyZiZV+A", "port": 8080, - "username": "eum", + "username": "quia", }, - email="hellen51@example.net", - force_connect=True, - name="mollitia", - password="0_:u~FCrahv", - proxy_country="uk", - user_agent="voluptas", - xbc="possimus", + email="deshaun.sipes@example.com", + force_connect=False, + name="quos", + password="qCpnvEf}U7?>b^hE_`P", + proxy_country="us", + user_agent="corrupti", + xbc="nihil", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="explicabo", - auth_type="mobile_app", - cookies="quia", + auth_id="eveniet", + auth_type="email_password", + cookies="error", custom_proxy={ "host": "proxy.example.com", - "password": 'Y"k__TNWXW]', + "password": "Ml7|7&LyZiZV+A", "port": 8080, - "username": "eum", + "username": "quia", }, - email="hellen51@example.net", - force_connect=True, - name="mollitia", - password="0_:u~FCrahv", - proxy_country="uk", - user_agent="voluptas", - xbc="possimus", + email="deshaun.sipes@example.com", + force_connect=False, + name="quos", + password="qCpnvEf}U7?>b^hE_`P", + proxy_country="us", + user_agent="corrupti", + xbc="nihil", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..bea1ef2 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="tags", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index cda1576..a894e05 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="amet", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="amet", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="amet", + smart_link_id="est", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="amet", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="et", + smart_link_id="distinctio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="natus", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="amet", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="amet", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="amet", + smart_link_id="est", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="amet", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ullam", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="repellat", + smart_link_id="doloremque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 5d17d97..fd9a7bb 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ghkspznot", - "tags": ["xdcyct"], + "search": "bhjlyzbpffwtojuhet", + "tags": ["zbhzzxmipvujcoghfzccgcl"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ollftrgbryvdp", - "tags": ["anxiykkkqv"], + "search": "dlaqtrrb", + "tags": ["lpwfzvwfpkruyr"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "odxxtwombpxqqemasrutnd", - "tags": ["sjxtgifqfvojvfpbbo"], + "include_smart_links": False, + "search": "pooxwzbpgtuwbfxkf", + "tags": ["kiwsiqujtna"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "fhmxcikxewhwqtrrvav", - "tags": ["hbx"], + "include_smart_links": False, + "search": "zxhxlgpwvxmjxnheuecs", + "tags": ["pldqvj"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ghkspznot", - "tags": ["xdcyct"], + "search": "bhjlyzbpffwtojuhet", + "tags": ["zbhzzxmipvujcoghfzccgcl"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ollftrgbryvdp", - "tags": ["anxiykkkqv"], + "search": "dlaqtrrb", + "tags": ["lpwfzvwfpkruyr"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "odxxtwombpxqqemasrutnd", - "tags": ["sjxtgifqfvojvfpbbo"], + "include_smart_links": False, + "search": "pooxwzbpgtuwbfxkf", + "tags": ["kiwsiqujtna"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "fhmxcikxewhwqtrrvav", - "tags": ["hbx"], + "include_smart_links": False, + "search": "zxhxlgpwvxmjxnheuecs", + "tags": ["pldqvj"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 48e0aca..f5cce6f 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="nemo", + tracking_link_id="eius", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="nemo", + tracking_link_id="eius", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="a", + tracking_link_id="odio", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="amet", + tracking_link_id="placeat", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 6f08206..5b6cc12 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="ut", + trial_link_id="et", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="ut", + trial_link_id="et", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="ut", + trial_link_id="et", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="ut", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="ut", + trial_link_id="et", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="id", + trial_link_id="distinctio", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="doloribus", + trial_link_id="a", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="necessitatibus", + trial_link_id="dolorum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index b4ffd23..de696ce 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="iirlhpwuag", + name="xchmnzdqtiuwhahh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From de812940595d4332b9f42d267f88f12c9783db1a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 11:12:32 +0000 Subject: [PATCH 25/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 36 +++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index e8458a5..252a0b6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7ec272d9816b974c4a10229c2fbf38ed7fca5382573f61a61f0d60f4ff7c7dac.yml -openapi_spec_hash: 63d89cac4960c7fd029e686c22109a84 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccbb99ea966aca7065532cf62680cffc02dbe6418ff94a8d19f073db6e2bebd0.yml +openapi_spec_hash: eebd244f25ae287b2cca731dbeef7fd5 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 2cde6e4..6be6170 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="officia", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="suscipit", + message_id="officia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="suscipit", + message_id="officia", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index fc0fe65..261d102 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="nihil", + list_id="quia", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="nihil", + list_id="quia", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="nihil", + list_id="quia", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="nihil", + list_id="quia", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="nihil", + list_id="quia", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4e18702..7ad41cb 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="velit", + post_id="laborum", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="velit", + post_id="laborum", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="velit", + post_id="laborum", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="velit", + post_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="velit", + post_id="laborum", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..b5f3d61 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 122983a..506c2ed 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="quia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="quia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="et", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="quia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="quia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="et", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="quia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="quia", + path_story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="et", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="quia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="quia", + story_id="et", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="et", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7506d9b..71b1c63 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "aut", + "nobis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "aut", + "nobis", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "aut", + "nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "aut", + "nobis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "aut", + "nobis", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "aut", + "nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 5831d6e..71e6aaa 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="eveniet", + auth_id="tempora", auth_type="email_password", - cookies="error", + cookies="veritatis", custom_proxy={ "host": "proxy.example.com", - "password": "Ml7|7&LyZiZV+A", + "password": "p9KVfhU", "port": 8080, - "username": "quia", + "username": "provident", }, - email="deshaun.sipes@example.com", + email="zlueilwitz@example.org", force_connect=False, - name="quos", - password="qCpnvEf}U7?>b^hE_`P", + name="iure", + password="y2-!V^;1", proxy_country="us", - user_agent="corrupti", - xbc="nihil", + user_agent="facere", + xbc="quaerat", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="eveniet", + auth_id="tempora", auth_type="email_password", - cookies="error", + cookies="veritatis", custom_proxy={ "host": "proxy.example.com", - "password": "Ml7|7&LyZiZV+A", + "password": "p9KVfhU", "port": 8080, - "username": "quia", + "username": "provident", }, - email="deshaun.sipes@example.com", + email="zlueilwitz@example.org", force_connect=False, - name="quos", - password="qCpnvEf}U7?>b^hE_`P", + name="iure", + password="y2-!V^;1", proxy_country="us", - user_agent="corrupti", - xbc="nihil", + user_agent="facere", + xbc="quaerat", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index bea1ef2..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="tags", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="tags", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index a894e05..5477fd5 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="sed", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="est", + smart_link_id="sed", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="est", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="distinctio", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolor", + smart_link_id="odio", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="sed", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="sed", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="est", + smart_link_id="sed", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="est", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="odit", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="doloremque", + smart_link_id="magni", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index fd9a7bb..120e30c 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "bhjlyzbpffwtojuhet", - "tags": ["zbhzzxmipvujcoghfzccgcl"], + "search": "sbsnb", + "tags": ["lqnuvdatruomru"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "dlaqtrrb", - "tags": ["lpwfzvwfpkruyr"], + "search": "airearuddtfxoqiazixsvp", + "tags": ["dm"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "pooxwzbpgtuwbfxkf", - "tags": ["kiwsiqujtna"], + "search": "gbpptthqbphs", + "tags": ["zxjmslhzbvtnshlitihske"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "zxhxlgpwvxmjxnheuecs", - "tags": ["pldqvj"], + "search": "q", + "tags": ["qxyw"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "bhjlyzbpffwtojuhet", - "tags": ["zbhzzxmipvujcoghfzccgcl"], + "search": "sbsnb", + "tags": ["lqnuvdatruomru"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "dlaqtrrb", - "tags": ["lpwfzvwfpkruyr"], + "search": "airearuddtfxoqiazixsvp", + "tags": ["dm"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "pooxwzbpgtuwbfxkf", - "tags": ["kiwsiqujtna"], + "search": "gbpptthqbphs", + "tags": ["zxjmslhzbvtnshlitihske"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "zxhxlgpwvxmjxnheuecs", - "tags": ["pldqvj"], + "search": "q", + "tags": ["qxyw"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index f5cce6f..6f43cee 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="eius", + tracking_link_id="rerum", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="eius", + tracking_link_id="rerum", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="odio", + tracking_link_id="laboriosam", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="placeat", + tracking_link_id="ex", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 5b6cc12..3f40227 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="et", + trial_link_id="laborum", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="et", + trial_link_id="laborum", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="et", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="et", + trial_link_id="laborum", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="distinctio", + trial_link_id="ea", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="a", + trial_link_id="ab", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="dolorum", + trial_link_id="est", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index de696ce..233c100 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="xchmnzdqtiuwhahh", + name="gfpqzjnou", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 2952e4b60838f01d8bd0e586249cd917d607cb62 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 13:12:32 +0000 Subject: [PATCH 26/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++--- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++----- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 80 ++++++++--------- tests/api_resources/test_stored.py | 36 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++-------- tests/api_resources/test_trial_links.py | 88 +++++++++---------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 252a0b6..e3aaaad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-ccbb99ea966aca7065532cf62680cffc02dbe6418ff94a8d19f073db6e2bebd0.yml -openapi_spec_hash: eebd244f25ae287b2cca731dbeef7fd5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml +openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 6be6170..65a1022 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="officia", + message_id="explicabo", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="officia", + message_id="explicabo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="officia", + message_id="explicabo", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 261d102..b284477 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="reprehenderit", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="reprehenderit", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quia", + list_id="reprehenderit", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quia", + list_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quia", + list_id="reprehenderit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 7ad41cb..c1a63ac 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="laborum", + post_id="est", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="laborum", + post_id="est", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="laborum", + post_id="est", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="laborum", + post_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="laborum", + post_id="est", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 506c2ed..7622911 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="et", + path_story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="et", + path_story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="ut", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="et", + story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="et", + story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="ut", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="et", + path_story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="et", + path_story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="et", + path_story_id="ut", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="et", + story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="et", + story_id="ut", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="et", + story_id="ut", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 71b1c63..2edb301 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "nobis", + "voluptatum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "nobis", + "voluptatum", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "nobis", + "voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "nobis", + "voluptatum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "nobis", + "voluptatum", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "nobis", + "voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 71e6aaa..8cab50c 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="tempora", - auth_type="email_password", - cookies="veritatis", + auth_id="sed", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "p9KVfhU", + "password": "tj(w/^", "port": 8080, - "username": "provident", + "username": "mollitia", }, - email="zlueilwitz@example.org", + email="greenfelder.brenna@example.com", force_connect=False, - name="iure", - password="y2-!V^;1", + name="necessitatibus", + password="R(Zk-tt", proxy_country="us", - user_agent="facere", - xbc="quaerat", + user_agent="sed", + xbc="ipsam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="tempora", - auth_type="email_password", - cookies="veritatis", + auth_id="sed", + auth_type="raw_data", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "p9KVfhU", + "password": "tj(w/^", "port": 8080, - "username": "provident", + "username": "mollitia", }, - email="zlueilwitz@example.org", + email="greenfelder.brenna@example.com", force_connect=False, - name="iure", - password="y2-!V^;1", + name="necessitatibus", + password="R(Zk-tt", proxy_country="us", - user_agent="facere", - xbc="quaerat", + user_agent="sed", + xbc="ipsam", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..aaff3bf 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="promotions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="promotions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 5477fd5..5975c5a 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="quia", + smart_link_id="error", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="quia", + smart_link_id="error", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="quia", + smart_link_id="error", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="quia", + smart_link_id="error", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="sed", + smart_link_id="et", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="sed", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="sed", + smart_link_id="et", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="sed", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="quia", + smart_link_id="error", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="quia", + smart_link_id="error", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="quia", + smart_link_id="error", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="quia", + smart_link_id="error", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="odio", + smart_link_id="ipsam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="sed", + smart_link_id="et", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="sed", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="sed", + smart_link_id="et", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="sed", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="sed", + smart_link_id="beatae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="magni", + smart_link_id="at", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 120e30c..c7e56a9 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "sbsnb", - "tags": ["lqnuvdatruomru"], + "search": "qfvoytljqllfyevicatxcnsg", + "tags": ["vratdxyjxzpyhxbpruaskfyv"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "airearuddtfxoqiazixsvp", - "tags": ["dm"], + "search": "kxuwxtwnngzresf", + "tags": ["wqfuoarqv"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "gbpptthqbphs", - "tags": ["zxjmslhzbvtnshlitihske"], + "search": "scl", + "tags": ["hokzeazwhgqwynq"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "q", - "tags": ["qxyw"], + "include_smart_links": True, + "search": "shplruiu", + "tags": ["qxkhsmzyodcwzppuwxwav"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "sbsnb", - "tags": ["lqnuvdatruomru"], + "search": "qfvoytljqllfyevicatxcnsg", + "tags": ["vratdxyjxzpyhxbpruaskfyv"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "airearuddtfxoqiazixsvp", - "tags": ["dm"], + "search": "kxuwxtwnngzresf", + "tags": ["wqfuoarqv"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "gbpptthqbphs", - "tags": ["zxjmslhzbvtnshlitihske"], + "search": "scl", + "tags": ["hokzeazwhgqwynq"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "q", - "tags": ["qxyw"], + "include_smart_links": True, + "search": "shplruiu", + "tags": ["qxkhsmzyodcwzppuwxwav"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 6f43cee..7cbafc7 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="magni", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="magni", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laboriosam", + tracking_link_id="tempora", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="eligendi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 3f40227..dda48d6 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="laborum", + trial_link_id="dicta", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="laborum", + trial_link_id="dicta", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ea", + trial_link_id="dolorum", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="ab", + trial_link_id="non", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="inventore", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 233c100..5f12341 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="gfpqzjnou", + name="mklozuwszqf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gfpqzjnou", + name="mklozuwszqf", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gfpqzjnou", + name="mklozuwszqf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="gfpqzjnou", + name="mklozuwszqf", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="gfpqzjnou", + name="mklozuwszqf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gfpqzjnou", + name="mklozuwszqf", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="gfpqzjnou", + name="mklozuwszqf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="gfpqzjnou", + name="mklozuwszqf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f49b174a7d2bf7d9ee1e443c9d6feb173faf9819 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 15:55:59 +0000 Subject: [PATCH 27/48] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3aaaad..9dc4165 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml -openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1ce2ec26e4caee65ba7ac15f712175c2d8008729c61791ef88284a3b1795fff.yml +openapi_spec_hash: 734d7ffe696a29001f0ccd6df2dad77d config_hash: 397c91e15c0024f8b5bbed9b82c2348c From 0155b0639df6ebf22940ccec7652db7b5832e125 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 16:12:48 +0000 Subject: [PATCH 28/48] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9dc4165..e3aaaad 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b1ce2ec26e4caee65ba7ac15f712175c2d8008729c61791ef88284a3b1795fff.yml -openapi_spec_hash: 734d7ffe696a29001f0ccd6df2dad77d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml +openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c From db0732e227750931db1a25a278456fd7b95424fb Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 18:12:35 +0000 Subject: [PATCH 29/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index e3aaaad..113d8fa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-641f663d0134786ff1239eab224f03030f08704502dfa7d9f9d8ad3a3caa55e1.yml -openapi_spec_hash: 795d08db1824ff18cf8828f2dfd068f9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-58a5691f9bb5e713e93fcc654175160b7cf3dc29aa8a8630cb69dda731c357bc.yml +openapi_spec_hash: 113bf2a7381de8577997aed09e19e195 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 65a1022..b484c8f 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="explicabo", + message_id="numquam", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index b284477..9f9b193 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="reprehenderit", + list_id="magnam", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="reprehenderit", + list_id="magnam", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="reprehenderit", + list_id="magnam", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="reprehenderit", + list_id="magnam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="reprehenderit", + list_id="magnam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c1a63ac..981ab65 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="est", + post_id="blanditiis", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="est", + post_id="blanditiis", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="est", + post_id="blanditiis", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="est", + post_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="est", + post_id="blanditiis", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 7622911..1a9b094 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="ut", + story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="ut", + story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="ut", + story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="ut", + story_id="blanditiis", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="ut", + path_story_id="blanditiis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="ut", + story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="ut", + story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="ut", + story_id="blanditiis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="ut", + story_id="blanditiis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 2edb301..859e5cd 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "voluptatum", + "cum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "voluptatum", + "cum", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "voluptatum", + "cum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "voluptatum", + "cum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "voluptatum", + "cum", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "voluptatum", + "cum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 8cab50c..8f1ab55 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="sed", + auth_id="doloribus", auth_type="raw_data", - cookies="et", + cookies="est", custom_proxy={ "host": "proxy.example.com", - "password": "tj(w/^", + "password": "}>;7}Gj[}bTqCncqD", "port": 8080, - "username": "mollitia", + "username": "beatae", }, - email="greenfelder.brenna@example.com", - force_connect=False, - name="necessitatibus", - password="R(Zk-tt", - proxy_country="us", - user_agent="sed", - xbc="ipsam", + email="tkozey@example.org", + force_connect=True, + name="reiciendis", + password='1[hqMO"', + proxy_country="uk", + user_agent="aut", + xbc="expedita", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="sed", + auth_id="doloribus", auth_type="raw_data", - cookies="et", + cookies="est", custom_proxy={ "host": "proxy.example.com", - "password": "tj(w/^", + "password": "}>;7}Gj[}bTqCncqD", "port": 8080, - "username": "mollitia", + "username": "beatae", }, - email="greenfelder.brenna@example.com", - force_connect=False, - name="necessitatibus", - password="R(Zk-tt", - proxy_country="us", - user_agent="sed", - xbc="ipsam", + email="tkozey@example.org", + force_connect=True, + name="reiciendis", + password='1[hqMO"', + proxy_country="uk", + user_agent="aut", + xbc="expedita", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index aaff3bf..1a80b27 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="promotions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="promotions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 5975c5a..dd88c60 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="error", + smart_link_id="qui", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="error", + smart_link_id="qui", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="error", + smart_link_id="qui", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="error", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="saepe", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="saepe", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="et", + smart_link_id="saepe", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="et", + smart_link_id="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="at", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="at", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="at", + smart_link_id="et", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="at", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="error", + smart_link_id="qui", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="error", + smart_link_id="qui", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="error", + smart_link_id="qui", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="error", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ipsam", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="saepe", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="saepe", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="et", + smart_link_id="saepe", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="et", + smart_link_id="saepe", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="beatae", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="beatae", + smart_link_id="eligendi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="at", + smart_link_id="et", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="at", + smart_link_id="et", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="at", + smart_link_id="et", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="at", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index c7e56a9..c075f4a 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qfvoytljqllfyevicatxcnsg", - "tags": ["vratdxyjxzpyhxbpruaskfyv"], + "search": "cdbldlpp", + "tags": ["iwfkyzmqyfheypgxfsfaak"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "kxuwxtwnngzresf", - "tags": ["wqfuoarqv"], + "search": "lriutobczew", + "tags": ["vyeybutswzimajcjscrx"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "scl", - "tags": ["hokzeazwhgqwynq"], + "search": "jj", + "tags": ["pectmelny"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "shplruiu", - "tags": ["qxkhsmzyodcwzppuwxwav"], + "include_smart_links": False, + "search": "uiyarfhbgajc", + "tags": ["unhwpzxpqmbshfukrrs"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "qfvoytljqllfyevicatxcnsg", - "tags": ["vratdxyjxzpyhxbpruaskfyv"], + "search": "cdbldlpp", + "tags": ["iwfkyzmqyfheypgxfsfaak"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "kxuwxtwnngzresf", - "tags": ["wqfuoarqv"], + "search": "lriutobczew", + "tags": ["vyeybutswzimajcjscrx"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "scl", - "tags": ["hokzeazwhgqwynq"], + "search": "jj", + "tags": ["pectmelny"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "shplruiu", - "tags": ["qxkhsmzyodcwzppuwxwav"], + "include_smart_links": False, + "search": "uiyarfhbgajc", + "tags": ["unhwpzxpqmbshfukrrs"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7cbafc7..1464e96 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="magni", + tracking_link_id="voluptates", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="magni", + tracking_link_id="voluptates", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="tempora", + tracking_link_id="quia", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eligendi", + tracking_link_id="ex", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index dda48d6..025203b 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dicta", + trial_link_id="repudiandae", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="dicta", + trial_link_id="repudiandae", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="dolorum", + trial_link_id="iure", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="sed", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="inventore", + trial_link_id="corporis", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 5f12341..14b6178 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="mklozuwszqf", + name="kzxnsqieiladfairxairlcpjg", ) @pytest.mark.skip(reason="Mock server tests are disabled") From b466abb391150e3ce362ab9846f672facc69551f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2026 20:12:31 +0000 Subject: [PATCH 30/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 113d8fa..273003d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-58a5691f9bb5e713e93fcc654175160b7cf3dc29aa8a8630cb69dda731c357bc.yml -openapi_spec_hash: 113bf2a7381de8577997aed09e19e195 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e5b9679cc16dfefa265a334476fb3bc56b4f66e1bc075a519313d18d4d14c5e1.yml +openapi_spec_hash: 2308e7a123b6fa89f5e6f1f2b6496ed6 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b484c8f..4924079 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="numquam", + message_id="doloremque", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 9f9b193..032d651 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="magnam", + list_id="ex", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="magnam", + list_id="ex", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="magnam", + list_id="ex", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="magnam", + list_id="ex", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="magnam", + list_id="ex", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 981ab65..6728f77 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="blanditiis", + post_id="deserunt", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="blanditiis", + post_id="deserunt", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="blanditiis", + post_id="deserunt", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="blanditiis", + post_id="deserunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="blanditiis", + post_id="deserunt", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 1a9b094..6304738 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="blanditiis", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="blanditiis", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="blanditiis", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="blanditiis", + story_id="nostrum", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="blanditiis", + path_story_id="nostrum", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="blanditiis", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="blanditiis", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="blanditiis", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="blanditiis", + story_id="nostrum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 859e5cd..a77cde5 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "cum", + "dolor", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "cum", + "dolor", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "cum", + "dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "cum", + "dolor", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "cum", + "dolor", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "cum", + "dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 8f1ab55..df45dae 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="doloribus", - auth_type="raw_data", - cookies="est", + auth_id="sed", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "}>;7}Gj[}bTqCncqD", + "password": "&\\#-1Z4", "port": 8080, - "username": "beatae", + "username": "in", }, - email="tkozey@example.org", - force_connect=True, - name="reiciendis", - password='1[hqMO"', - proxy_country="uk", - user_agent="aut", - xbc="expedita", + email="khaley@example.org", + force_connect=False, + name="officia", + password="0vN4b.-$fO_oe!QI@24", + proxy_country="us", + user_agent="eos", + xbc="nobis", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="doloribus", - auth_type="raw_data", - cookies="est", + auth_id="sed", + auth_type="email_password", + cookies="et", custom_proxy={ "host": "proxy.example.com", - "password": "}>;7}Gj[}bTqCncqD", + "password": "&\\#-1Z4", "port": 8080, - "username": "beatae", + "username": "in", }, - email="tkozey@example.org", - force_connect=True, - name="reiciendis", - password='1[hqMO"', - proxy_country="uk", - user_agent="aut", - xbc="expedita", + email="khaley@example.org", + force_connect=False, + name="officia", + password="0vN4b.-$fO_oe!QI@24", + proxy_country="us", + user_agent="eos", + xbc="nobis", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b27..0f3980c 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="onlyfans", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="onlyfans", + type="tips", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index dd88c60..15e451e 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="qui", + smart_link_id="totam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="qui", + smart_link_id="totam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="qui", + smart_link_id="totam", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="qui", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="saepe", + smart_link_id="labore", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="saepe", + smart_link_id="labore", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="saepe", + smart_link_id="labore", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="saepe", + smart_link_id="labore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="qui", + smart_link_id="totam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="qui", + smart_link_id="totam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="qui", + smart_link_id="totam", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="qui", + smart_link_id="totam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ut", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="saepe", + smart_link_id="labore", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="saepe", + smart_link_id="labore", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="saepe", + smart_link_id="labore", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="saepe", + smart_link_id="labore", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="qui", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eligendi", + smart_link_id="velit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="et", + smart_link_id="omnis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index c075f4a..adcd046 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cdbldlpp", - "tags": ["iwfkyzmqyfheypgxfsfaak"], + "search": "hgckxy", + "tags": ["aqxcifcznrc"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lriutobczew", - "tags": ["vyeybutswzimajcjscrx"], + "search": "denlogiejqdeewgckpugoli", + "tags": ["jbzxagbnathrw"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "jj", - "tags": ["pectmelny"], + "include_smart_links": True, + "search": "kclizkinyyquwhvtpvfjgs", + "tags": ["nogjbhykqod"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "uiyarfhbgajc", - "tags": ["unhwpzxpqmbshfukrrs"], + "include_smart_links": True, + "search": "pezcygxk", + "tags": ["evx"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "cdbldlpp", - "tags": ["iwfkyzmqyfheypgxfsfaak"], + "search": "hgckxy", + "tags": ["aqxcifcznrc"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lriutobczew", - "tags": ["vyeybutswzimajcjscrx"], + "search": "denlogiejqdeewgckpugoli", + "tags": ["jbzxagbnathrw"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "jj", - "tags": ["pectmelny"], + "include_smart_links": True, + "search": "kclizkinyyquwhvtpvfjgs", + "tags": ["nogjbhykqod"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "uiyarfhbgajc", - "tags": ["unhwpzxpqmbshfukrrs"], + "include_smart_links": True, + "search": "pezcygxk", + "tags": ["evx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 1464e96..188d3f8 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="voluptates", + tracking_link_id="assumenda", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="quia", + tracking_link_id="ut", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ex", + tracking_link_id="aperiam", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 025203b..30f9973 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="repudiandae", + trial_link_id="rerum", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="repudiandae", + trial_link_id="rerum", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iure", + trial_link_id="vel", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sed", + trial_link_id="quae", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="corporis", + trial_link_id="cumque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 14b6178..e1911f6 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="kzxnsqieiladfairxairlcpjg", + name="foxmfspzyffhxlhqxdmlmto", ) @pytest.mark.skip(reason="Mock server tests are disabled") From fe65d3ebaaf73dd96c60fbb8dd96292e8b13ae5a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 6 Jun 2026 16:12:29 +0000 Subject: [PATCH 31/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 273003d..4ed12a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-e5b9679cc16dfefa265a334476fb3bc56b4f66e1bc075a519313d18d4d14c5e1.yml -openapi_spec_hash: 2308e7a123b6fa89f5e6f1f2b6496ed6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dfa9194b09a0589fd3344d6ea20b2c2b330b0a235026e4e772a0e95112e94c0d.yml +openapi_spec_hash: 10b2a643dc02cbcd2499ebe551257acd config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4924079..87f70a9 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="doloremque", + message_id="enim", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="doloremque", + message_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="doloremque", + message_id="enim", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 032d651..e3f7344 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="distinctio", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="distinctio", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ex", + list_id="distinctio", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="ex", + list_id="distinctio", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ex", + list_id="distinctio", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 6728f77..7334b8b 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="deserunt", + post_id="ipsum", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="deserunt", + post_id="ipsum", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="deserunt", + post_id="ipsum", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="deserunt", + post_id="ipsum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="deserunt", + post_id="ipsum", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 6304738..57974b5 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="nostrum", + path_story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="nostrum", + path_story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="quod", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="nostrum", + story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="nostrum", + story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="quod", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="nostrum", + path_story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="nostrum", + path_story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="quod", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="nostrum", + story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="nostrum", + story_id="quod", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="quod", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index a77cde5..71b1c63 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "dolor", + "nobis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "dolor", + "nobis", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "dolor", + "nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "dolor", + "nobis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "dolor", + "nobis", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "dolor", + "nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index df45dae..af2e347 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="sed", - auth_type="email_password", - cookies="et", + auth_id="earum", + auth_type="raw_data", + cookies="autem", custom_proxy={ "host": "proxy.example.com", - "password": "&\\#-1Z4", + "password": 'V)i;w,E-+<#,Unf."{=', "port": 8080, - "username": "in", + "username": "sed", }, - email="khaley@example.org", - force_connect=False, - name="officia", - password="0vN4b.-$fO_oe!QI@24", - proxy_country="us", - user_agent="eos", - xbc="nobis", + email="mathias45@example.org", + force_connect=True, + name="sunt", + password="|8N=u?0$geI", + proxy_country="uk", + user_agent="et", + xbc="adipisci", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="sed", - auth_type="email_password", - cookies="et", + auth_id="earum", + auth_type="raw_data", + cookies="autem", custom_proxy={ "host": "proxy.example.com", - "password": "&\\#-1Z4", + "password": 'V)i;w,E-+<#,Unf."{=', "port": 8080, - "username": "in", + "username": "sed", }, - email="khaley@example.org", - force_connect=False, - name="officia", - password="0vN4b.-$fO_oe!QI@24", - proxy_country="us", - user_agent="eos", - xbc="nobis", + email="mathias45@example.org", + force_connect=True, + name="sunt", + password="|8N=u?0$geI", + proxy_country="uk", + user_agent="et", + xbc="adipisci", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 0f3980c..280e3de 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="tips", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="tips", + type="comments", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 15e451e..175ba1e 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="labore", + smart_link_id="aut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="labore", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="labore", + smart_link_id="aut", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="labore", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="totam", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="rerum", + smart_link_id="soluta", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="labore", + smart_link_id="aut", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="labore", + smart_link_id="aut", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="labore", + smart_link_id="aut", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="labore", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="voluptatum", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="velit", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="omnis", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index adcd046..4d99402 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "hgckxy", - "tags": ["aqxcifcznrc"], + "search": "lsazhoivqvgwseffkuizvhhj", + "tags": ["znivldvnfjrikld"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "denlogiejqdeewgckpugoli", - "tags": ["jbzxagbnathrw"], + "search": "izpz", + "tags": ["zisptqkzskdbh"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "kclizkinyyquwhvtpvfjgs", - "tags": ["nogjbhykqod"], + "include_smart_links": False, + "search": "iufaanxa", + "tags": ["laqbuymcnrmjhkxduzjjuqhu"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "pezcygxk", - "tags": ["evx"], + "search": "ryxjuejsvaxsxjq", + "tags": ["uswnnchswhbvmexk"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "hgckxy", - "tags": ["aqxcifcznrc"], + "search": "lsazhoivqvgwseffkuizvhhj", + "tags": ["znivldvnfjrikld"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "denlogiejqdeewgckpugoli", - "tags": ["jbzxagbnathrw"], + "search": "izpz", + "tags": ["zisptqkzskdbh"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "kclizkinyyquwhvtpvfjgs", - "tags": ["nogjbhykqod"], + "include_smart_links": False, + "search": "iufaanxa", + "tags": ["laqbuymcnrmjhkxduzjjuqhu"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "pezcygxk", - "tags": ["evx"], + "search": "ryxjuejsvaxsxjq", + "tags": ["uswnnchswhbvmexk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 188d3f8..ed5e67f 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="assumenda", + tracking_link_id="molestiae", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="in", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="aperiam", + tracking_link_id="voluptates", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 30f9973..debad59 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="rerum", + trial_link_id="culpa", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="rerum", + trial_link_id="culpa", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="qui", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="quae", + trial_link_id="dolorem", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="cumque", + trial_link_id="hic", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index e1911f6..01f8b2a 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="foxmfspzyffhxlhqxdmlmto", + name="zxawrlntjvpczctt", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 924de03411c4481b1bf81c6b67dad9d5640c0916 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 22:12:37 +0000 Subject: [PATCH 32/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4ed12a0..e444cca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-dfa9194b09a0589fd3344d6ea20b2c2b330b0a235026e4e772a0e95112e94c0d.yml -openapi_spec_hash: 10b2a643dc02cbcd2499ebe551257acd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8e5ddc9ff4b3c807dbee077def9b9ef094ad5f0f34a7c55136ec1179667652f4.yml +openapi_spec_hash: 8ee37c36163bd14eeccfd489360a2d79 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 87f70a9..15f6dfc 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="enim", + message_id="et", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="enim", + message_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="enim", + message_id="et", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index e3f7344..1c91556 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="distinctio", + list_id="quisquam", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="distinctio", + list_id="quisquam", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="distinctio", + list_id="quisquam", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="distinctio", + list_id="quisquam", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="distinctio", + list_id="quisquam", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 7334b8b..0d7fdb9 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="ipsum", + post_id="nam", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="ipsum", + post_id="nam", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="ipsum", + post_id="nam", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="ipsum", + post_id="nam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="ipsum", + post_id="nam", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 57974b5..afeabc3 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="quod", + path_story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="quod", + path_story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="quod", + path_story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="quod", + path_story_id="minima", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="quod", + story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="quod", + story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="quod", + story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="quod", + story_id="minima", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="quod", + path_story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quod", + path_story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="quod", + path_story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quod", + path_story_id="minima", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="quod", + story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quod", + story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="quod", + story_id="minima", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quod", + story_id="minima", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 71b1c63..0b8f88f 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "nobis", + "qui", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "nobis", + "qui", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "nobis", + "qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "nobis", + "qui", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "nobis", + "qui", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "nobis", + "qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index af2e347..1cbe25c 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="earum", + auth_id="dolorem", auth_type="raw_data", - cookies="autem", + cookies="consequatur", custom_proxy={ "host": "proxy.example.com", - "password": 'V)i;w,E-+<#,Unf."{=', + "password": "_eiBb!!u!xJtZ", "port": 8080, - "username": "sed", + "username": "repudiandae", }, - email="mathias45@example.org", - force_connect=True, - name="sunt", - password="|8N=u?0$geI", + email="nader.cyril@example.com", + force_connect=False, + name="error", + password="wwz\\+gD0AZE,',[", proxy_country="uk", - user_agent="et", - xbc="adipisci", + user_agent="autem", + xbc="id", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="earum", + auth_id="dolorem", auth_type="raw_data", - cookies="autem", + cookies="consequatur", custom_proxy={ "host": "proxy.example.com", - "password": 'V)i;w,E-+<#,Unf."{=', + "password": "_eiBb!!u!xJtZ", "port": 8080, - "username": "sed", + "username": "repudiandae", }, - email="mathias45@example.org", - force_connect=True, - name="sunt", - password="|8N=u?0$geI", + email="nader.cyril@example.com", + force_connect=False, + name="error", + password="wwz\\+gD0AZE,',[", proxy_country="uk", - user_agent="et", - xbc="adipisci", + user_agent="autem", + xbc="id", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 280e3de..b215885 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="comments", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="comments", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 175ba1e..40cf3d1 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="quibusdam", + smart_link_id="voluptatibus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="soluta", + smart_link_id="dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="aut", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="culpa", + smart_link_id="reiciendis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="qui", + smart_link_id="repellendus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptatem", + smart_link_id="nesciunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 4d99402..380b086 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lsazhoivqvgwseffkuizvhhj", - "tags": ["znivldvnfjrikld"], + "search": "blidalzpefisy", + "tags": ["ujuvoonxjusrs"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "izpz", - "tags": ["zisptqkzskdbh"], + "search": "atagdqyd", + "tags": ["ggszdzlwbkkgjhqk"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "iufaanxa", - "tags": ["laqbuymcnrmjhkxduzjjuqhu"], + "search": "idncfycfbkvhfxcrpkifmvn", + "tags": ["flyjbck"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "ryxjuejsvaxsxjq", - "tags": ["uswnnchswhbvmexk"], + "include_smart_links": False, + "search": "oudnjzxhju", + "tags": ["ezfhprygaq"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "lsazhoivqvgwseffkuizvhhj", - "tags": ["znivldvnfjrikld"], + "search": "blidalzpefisy", + "tags": ["ujuvoonxjusrs"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "izpz", - "tags": ["zisptqkzskdbh"], + "search": "atagdqyd", + "tags": ["ggszdzlwbkkgjhqk"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "iufaanxa", - "tags": ["laqbuymcnrmjhkxduzjjuqhu"], + "search": "idncfycfbkvhfxcrpkifmvn", + "tags": ["flyjbck"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "ryxjuejsvaxsxjq", - "tags": ["uswnnchswhbvmexk"], + "include_smart_links": False, + "search": "oudnjzxhju", + "tags": ["ezfhprygaq"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ed5e67f..684739f 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="molestiae", + tracking_link_id="qui", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="molestiae", + tracking_link_id="qui", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="in", + tracking_link_id="repellendus", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="voluptates", + tracking_link_id="ut", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index debad59..83c028e 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="culpa", + trial_link_id="earum", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="culpa", + trial_link_id="earum", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="culpa", + trial_link_id="earum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="culpa", + trial_link_id="earum", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="qui", + trial_link_id="repellat", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="dolorem", + trial_link_id="deleniti", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="hic", + trial_link_id="doloremque", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 01f8b2a..0bca0cb 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="zxawrlntjvpczctt", + name="vjxjprcshnfozfbnfl", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8ada88cd402259d9daa8cd20e95e3b44d67e0bf5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 02:12:33 +0000 Subject: [PATCH 33/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 14 files changed, 250 insertions(+), 250 deletions(-) diff --git a/.stats.yml b/.stats.yml index e444cca..48d3a1c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8e5ddc9ff4b3c807dbee077def9b9ef094ad5f0f34a7c55136ec1179667652f4.yml -openapi_spec_hash: 8ee37c36163bd14eeccfd489360a2d79 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-eab604f37d98f3e04e08f5f50f591467230261503eec23dcd6a36a68e02512b3.yml +openapi_spec_hash: ae4ef4ec4cf3f26b009651f73ada95d4 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 15f6dfc..10cfa2e 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="quia", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="et", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="et", + message_id="quia", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 1c91556..3f82885 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quisquam", + list_id="ut", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quisquam", + list_id="ut", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quisquam", + list_id="ut", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quisquam", + list_id="ut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quisquam", + list_id="ut", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d7fdb9..fc6b660 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="nam", + post_id="doloremque", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="nam", + post_id="doloremque", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="nam", + post_id="doloremque", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="nam", + post_id="doloremque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="nam", + post_id="doloremque", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index afeabc3..7dce1bd 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="minima", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="minima", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="minima", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="minima", + path_story_id="pariatur", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="minima", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="minima", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="minima", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="minima", + story_id="pariatur", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="minima", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="minima", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="minima", + path_story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="minima", + path_story_id="pariatur", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="minima", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="minima", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="minima", + story_id="pariatur", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="minima", + story_id="pariatur", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0b8f88f..72043d2 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "qui", + "asperiores", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "qui", + "asperiores", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "qui", + "asperiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "qui", + "asperiores", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "qui", + "asperiores", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "qui", + "asperiores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 1cbe25c..7650dfe 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="dolorem", - auth_type="raw_data", - cookies="consequatur", + auth_id="deleniti", + auth_type="email_password", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "_eiBb!!u!xJtZ", + "password": "yKg~[sbAmJ@X%.Fq=xq$", "port": 8080, - "username": "repudiandae", + "username": "repellat", }, - email="nader.cyril@example.com", - force_connect=False, - name="error", - password="wwz\\+gD0AZE,',[", + email="gavin.bednar@example.org", + force_connect=True, + name="ea", + password="p}w)m None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="dolorem", - auth_type="raw_data", - cookies="consequatur", + auth_id="deleniti", + auth_type="email_password", + cookies="quia", custom_proxy={ "host": "proxy.example.com", - "password": "_eiBb!!u!xJtZ", + "password": "yKg~[sbAmJ@X%.Fq=xq$", "port": 8080, - "username": "repudiandae", + "username": "repellat", }, - email="nader.cyril@example.com", - force_connect=False, - name="error", - password="wwz\\+gD0AZE,',[", + email="gavin.bednar@example.org", + force_connect=True, + name="ea", + password="p}w)m None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 40cf3d1..20df4fe 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="voluptatibus", + smart_link_id="nulla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolores", + smart_link_id="ad", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="voluptate", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="reiciendis", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="repellendus", + smart_link_id="exercitationem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="nesciunt", + smart_link_id="dolorum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 380b086..622b123 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "blidalzpefisy", - "tags": ["ujuvoonxjusrs"], + "search": "oyufwphrihpvtvljb", + "tags": ["mwnbdlbnaojjrgqhgl"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "atagdqyd", - "tags": ["ggszdzlwbkkgjhqk"], + "search": "fcnzyzqkgocra", + "tags": ["nwbdvvqiykgsgwnlrhpoya"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "idncfycfbkvhfxcrpkifmvn", - "tags": ["flyjbck"], + "include_smart_links": True, + "search": "xsualzmate", + "tags": ["bozmrfspu"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "oudnjzxhju", - "tags": ["ezfhprygaq"], + "search": "acvxloyprdloldiec", + "tags": ["pcjs"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "blidalzpefisy", - "tags": ["ujuvoonxjusrs"], + "search": "oyufwphrihpvtvljb", + "tags": ["mwnbdlbnaojjrgqhgl"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "atagdqyd", - "tags": ["ggszdzlwbkkgjhqk"], + "search": "fcnzyzqkgocra", + "tags": ["nwbdvvqiykgsgwnlrhpoya"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "idncfycfbkvhfxcrpkifmvn", - "tags": ["flyjbck"], + "include_smart_links": True, + "search": "xsualzmate", + "tags": ["bozmrfspu"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "oudnjzxhju", - "tags": ["ezfhprygaq"], + "search": "acvxloyprdloldiec", + "tags": ["pcjs"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 684739f..c4ec6b2 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="omnis", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="omnis", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="repellendus", + tracking_link_id="adipisci", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="ut", + tracking_link_id="commodi", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 83c028e..4f1993c 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="earum", + trial_link_id="est", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="earum", + trial_link_id="est", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="earum", + trial_link_id="est", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="earum", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="earum", + trial_link_id="est", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="repellat", + trial_link_id="ad", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="deleniti", + trial_link_id="officiis", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="doloremque", + trial_link_id="nisi", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0bca0cb..25703a4 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="vjxjprcshnfozfbnfl", + name="axmckamrfnnfxpzvob", ) @pytest.mark.skip(reason="Mock server tests are disabled") From aa704e0fa956d67a1551857fecfbceaf52a42b5c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 03:12:31 +0000 Subject: [PATCH 34/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 13 files changed, 256 insertions(+), 256 deletions(-) diff --git a/.stats.yml b/.stats.yml index 48d3a1c..dcf3b55 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-eab604f37d98f3e04e08f5f50f591467230261503eec23dcd6a36a68e02512b3.yml -openapi_spec_hash: ae4ef4ec4cf3f26b009651f73ada95d4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f55b2c1592727e33434046d90316dc071b11cce72dacdccb57bed289b11d3367.yml +openapi_spec_hash: 1fdb9cd0b04b4f43e9d4ef8d83634742 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 10cfa2e..26284d7 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="odio", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quia", + message_id="odio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="odio", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 3f82885..7e10c87 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="consequatur", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="consequatur", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="ut", + list_id="consequatur", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="ut", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="ut", + list_id="consequatur", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index fc6b660..8c14c54 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="doloremque", + post_id="laudantium", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="doloremque", + post_id="laudantium", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="doloremque", + post_id="laudantium", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="doloremque", + post_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="doloremque", + post_id="laudantium", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 7dce1bd..a1fbfde 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="pariatur", + story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="pariatur", + story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="repudiandae", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="pariatur", + path_story_id="repudiandae", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="pariatur", + story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="pariatur", + story_id="repudiandae", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="pariatur", + story_id="repudiandae", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 72043d2..9afae3a 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "asperiores", + "placeat", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "asperiores", + "placeat", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "asperiores", + "placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "asperiores", + "placeat", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "asperiores", + "placeat", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "asperiores", + "placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 7650dfe..9ea3a97 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="deleniti", - auth_type="email_password", - cookies="quia", + auth_id="repudiandae", + auth_type="raw_data", + cookies="eaque", custom_proxy={ "host": "proxy.example.com", - "password": "yKg~[sbAmJ@X%.Fq=xq$", + "password": "(bQqHf", "port": 8080, - "username": "repellat", + "username": "dignissimos", }, - email="gavin.bednar@example.org", - force_connect=True, - name="ea", - password="p}w)m None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="deleniti", - auth_type="email_password", - cookies="quia", + auth_id="repudiandae", + auth_type="raw_data", + cookies="eaque", custom_proxy={ "host": "proxy.example.com", - "password": "yKg~[sbAmJ@X%.Fq=xq$", + "password": "(bQqHf", "port": 8080, - "username": "repellat", + "username": "dignissimos", }, - email="gavin.bednar@example.org", - force_connect=True, - name="ea", - password="p}w)m None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="natus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="natus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quis", + smart_link_id="natus", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quis", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="eos", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="eos", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="aut", + smart_link_id="eos", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="aut", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="nulla", + smart_link_id="tempora", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ad", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="natus", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="natus", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quis", + smart_link_id="natus", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quis", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="eos", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="aut", + smart_link_id="eos", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="aut", + smart_link_id="eos", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="aut", + smart_link_id="eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="exercitationem", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="dolorum", + smart_link_id="natus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 622b123..e96b3ad 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "oyufwphrihpvtvljb", - "tags": ["mwnbdlbnaojjrgqhgl"], + "search": "uasiicgwvsyovcdniyzbyxza", + "tags": ["qgaghjuohkcavinarr"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "fcnzyzqkgocra", - "tags": ["nwbdvvqiykgsgwnlrhpoya"], + "search": "ivohirs", + "tags": ["isecngelnvntsktl"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "xsualzmate", - "tags": ["bozmrfspu"], + "include_smart_links": False, + "search": "ziemaqzrzwmziaqcj", + "tags": ["pqqzivfqgvwoguomhtguemje"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "acvxloyprdloldiec", - "tags": ["pcjs"], + "include_smart_links": True, + "search": "lpfutzezg", + "tags": ["pfaoowvrtfnbidrukbo"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "oyufwphrihpvtvljb", - "tags": ["mwnbdlbnaojjrgqhgl"], + "search": "uasiicgwvsyovcdniyzbyxza", + "tags": ["qgaghjuohkcavinarr"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "fcnzyzqkgocra", - "tags": ["nwbdvvqiykgsgwnlrhpoya"], + "search": "ivohirs", + "tags": ["isecngelnvntsktl"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "xsualzmate", - "tags": ["bozmrfspu"], + "include_smart_links": False, + "search": "ziemaqzrzwmziaqcj", + "tags": ["pqqzivfqgvwoguomhtguemje"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "acvxloyprdloldiec", - "tags": ["pcjs"], + "include_smart_links": True, + "search": "lpfutzezg", + "tags": ["pfaoowvrtfnbidrukbo"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c4ec6b2..65b8b62 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="unde", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="unde", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="adipisci", + tracking_link_id="reprehenderit", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="commodi", + tracking_link_id="pariatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4f1993c..93ad700 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="quia", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="quia", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="est", + trial_link_id="quia", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="est", + trial_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="est", + trial_link_id="quia", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="ad", + trial_link_id="vel", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="officiis", + trial_link_id="non", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nisi", + trial_link_id="et", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 25703a4..d802f34 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="axmckamrfnnfxpzvob", + name="owrslgixakelwccdlerecavh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From e64239d0f6358f959e78a679908eddb39f8bff21 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 17:12:44 +0000 Subject: [PATCH 35/48] feat(api): api update --- .stats.yml | 4 +- .../types/data_export_list_response.py | 2 + .../types/data_export_retrieve_response.py | 2 + .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 266 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index dcf3b55..a074d12 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-f55b2c1592727e33434046d90316dc071b11cce72dacdccb57bed289b11d3367.yml -openapi_spec_hash: 1fdb9cd0b04b4f43e9d4ef8d83634742 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-80f0a6b60cdd7a4e61c707368aa54fd0c1bce7fc5b5997dc3b42a1bd466dd683.yml +openapi_spec_hash: 72e38ddcd236d501fab63438c14890e2 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/types/data_export_list_response.py b/src/onlyfansapi/types/data_export_list_response.py index 76ca526..a721c5b 100644 --- a/src/onlyfansapi/types/data_export_list_response.py +++ b/src/onlyfansapi/types/data_export_list_response.py @@ -80,6 +80,8 @@ class DataData(BaseModel): failed_at: Optional[str] = None + failed_downloads: Optional[int] = None + failed_reason: Optional[str] = None file_type: Optional[str] = None diff --git a/src/onlyfansapi/types/data_export_retrieve_response.py b/src/onlyfansapi/types/data_export_retrieve_response.py index bcfde62..d9cc2eb 100644 --- a/src/onlyfansapi/types/data_export_retrieve_response.py +++ b/src/onlyfansapi/types/data_export_retrieve_response.py @@ -74,6 +74,8 @@ class Data(BaseModel): failed_at: Optional[str] = None + failed_downloads: Optional[int] = None + failed_reason: Optional[str] = None file_type: Optional[str] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 26284d7..c1c7f05 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="odio", + message_id="est", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="odio", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="odio", + message_id="est", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 7e10c87..95da3c2 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="quod", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="quod", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="quod", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="consequatur", + list_id="quod", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="quod", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 8c14c54..56d6dac 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="laudantium", + post_id="amet", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="laudantium", + post_id="amet", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="laudantium", + post_id="amet", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="laudantium", + post_id="amet", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="laudantium", + post_id="amet", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..b5f3d61 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=24, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index a1fbfde..8dc3f98 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="repudiandae", + story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="repudiandae", + story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="repudiandae", + story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="repudiandae", + story_id="nobis", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="repudiandae", + path_story_id="nobis", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="repudiandae", + story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="repudiandae", + story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="repudiandae", + story_id="nobis", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="repudiandae", + story_id="nobis", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 9afae3a..80ac817 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "placeat", + "eveniet", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "placeat", + "eveniet", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "placeat", + "eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "placeat", + "eveniet", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "placeat", + "eveniet", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "placeat", + "eveniet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 9ea3a97..509584d 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="repudiandae", + auth_id="mollitia", auth_type="raw_data", - cookies="eaque", + cookies="sapiente", custom_proxy={ "host": "proxy.example.com", - "password": "(bQqHf", + "password": "?fHJ5NF2?mza8SMw/", "port": 8080, - "username": "dignissimos", + "username": "culpa", }, - email="nframi@example.net", + email="jerel.paucek@example.com", force_connect=False, - name="explicabo", - password="^w#Eqh", - proxy_country="uk", - user_agent="et", - xbc="recusandae", + name="dolores", + password="G=B$B~", + proxy_country="us", + user_agent="ad", + xbc="ut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="repudiandae", + auth_id="mollitia", auth_type="raw_data", - cookies="eaque", + cookies="sapiente", custom_proxy={ "host": "proxy.example.com", - "password": "(bQqHf", + "password": "?fHJ5NF2?mza8SMw/", "port": 8080, - "username": "dignissimos", + "username": "culpa", }, - email="nframi@example.net", + email="jerel.paucek@example.com", force_connect=False, - name="explicabo", - password="^w#Eqh", - proxy_country="uk", - user_agent="et", - xbc="recusandae", + name="dolores", + password="G=B$B~", + proxy_country="us", + user_agent="ad", + xbc="ut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index e499540..bf56834 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="natus", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="natus", + smart_link_id="culpa", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="natus", + smart_link_id="culpa", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="natus", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="tempora", + smart_link_id="itaque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="dolor", + smart_link_id="aliquid", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="natus", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="natus", + smart_link_id="culpa", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="natus", + smart_link_id="culpa", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="natus", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="eos", + smart_link_id="ipsum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quis", + smart_link_id="quidem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="natus", + smart_link_id="voluptas", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index e96b3ad..5fdd249 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uasiicgwvsyovcdniyzbyxza", - "tags": ["qgaghjuohkcavinarr"], + "search": "uhlc", + "tags": ["gndddz"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ivohirs", - "tags": ["isecngelnvntsktl"], + "search": "tdn", + "tags": ["sppfyoln"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "ziemaqzrzwmziaqcj", - "tags": ["pqqzivfqgvwoguomhtguemje"], + "include_smart_links": True, + "search": "ixmdnigdrvlxgceqchx", + "tags": ["jcyzslczkecz"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "lpfutzezg", - "tags": ["pfaoowvrtfnbidrukbo"], + "include_smart_links": False, + "search": "qpjjcomcpirlrqr", + "tags": ["fikndvimvm"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uasiicgwvsyovcdniyzbyxza", - "tags": ["qgaghjuohkcavinarr"], + "search": "uhlc", + "tags": ["gndddz"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ivohirs", - "tags": ["isecngelnvntsktl"], + "search": "tdn", + "tags": ["sppfyoln"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "ziemaqzrzwmziaqcj", - "tags": ["pqqzivfqgvwoguomhtguemje"], + "include_smart_links": True, + "search": "ixmdnigdrvlxgceqchx", + "tags": ["jcyzslczkecz"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "lpfutzezg", - "tags": ["pfaoowvrtfnbidrukbo"], + "include_smart_links": False, + "search": "qpjjcomcpirlrqr", + "tags": ["fikndvimvm"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 65b8b62..75c2804 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="unde", + tracking_link_id="quae", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="unde", + tracking_link_id="quae", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="reprehenderit", + tracking_link_id="harum", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="eos", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 93ad700..1de2531 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="quia", + trial_link_id="distinctio", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="quia", + trial_link_id="distinctio", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="vel", + trial_link_id="voluptate", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="non", + trial_link_id="est", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="et", + trial_link_id="assumenda", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index d802f34..1100e46 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="owrslgixakelwccdlerecavh", + name="zjrisc", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 57a911acb35d93fd2586a5ae34cc6fd708943b2e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 18:12:33 +0000 Subject: [PATCH 36/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index a074d12..eb3560b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-80f0a6b60cdd7a4e61c707368aa54fd0c1bce7fc5b5997dc3b42a1bd466dd683.yml -openapi_spec_hash: 72e38ddcd236d501fab63438c14890e2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b86afc817b1c0d4b2263da6812323e9a65ab58a08f4521800c03e8b73fee064a.yml +openapi_spec_hash: 277e9d0d8eec92a152492d0c4848e0e9 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c1c7f05..1425657 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="exercitationem", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="est", + message_id="exercitationem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="exercitationem", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 95da3c2..7e10c87 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quod", + list_id="consequatur", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quod", + list_id="consequatur", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quod", + list_id="consequatur", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quod", + list_id="consequatur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quod", + list_id="consequatur", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 56d6dac..cea7d5d 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="amet", + post_id="excepturi", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="amet", + post_id="excepturi", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="amet", + post_id="excepturi", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="amet", + post_id="excepturi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="amet", + post_id="excepturi", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=6, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 8dc3f98..29041a5 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="nobis", + story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="nobis", + story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="nobis", + story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="nobis", + story_id="temporibus", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nobis", + path_story_id="temporibus", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="nobis", + story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nobis", + story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="nobis", + story_id="temporibus", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nobis", + story_id="temporibus", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 80ac817..02cf31a 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "eveniet", + "sed", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "eveniet", + "sed", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "eveniet", + "sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "eveniet", + "sed", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "eveniet", + "sed", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "eveniet", + "sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 509584d..9568823 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="mollitia", + auth_id="nisi", auth_type="raw_data", - cookies="sapiente", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "?fHJ5NF2?mza8SMw/", + "password": "r+T2d-~2k", "port": 8080, - "username": "culpa", + "username": "minima", }, - email="jerel.paucek@example.com", + email="keanu.nader@example.org", force_connect=False, - name="dolores", - password="G=B$B~", - proxy_country="us", - user_agent="ad", - xbc="ut", + name="velit", + password="l;pcSTW#YvN)", + proxy_country="uk", + user_agent="at", + xbc="aut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="mollitia", + auth_id="nisi", auth_type="raw_data", - cookies="sapiente", + cookies="ut", custom_proxy={ "host": "proxy.example.com", - "password": "?fHJ5NF2?mza8SMw/", + "password": "r+T2d-~2k", "port": 8080, - "username": "culpa", + "username": "minima", }, - email="jerel.paucek@example.com", + email="keanu.nader@example.org", force_connect=False, - name="dolores", - password="G=B$B~", - proxy_country="us", - user_agent="ad", - xbc="ut", + name="velit", + password="l;pcSTW#YvN)", + proxy_country="uk", + user_agent="at", + xbc="aut", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b215885..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="purchases", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="purchases", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index bf56834..c2fed8c 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="itaque", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="aliquid", + smart_link_id="iusto", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="culpa", + smart_link_id="maxime", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="ipsum", + smart_link_id="provident", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="quidem", + smart_link_id="atque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptas", + smart_link_id="reprehenderit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 5fdd249..9e150bf 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uhlc", - "tags": ["gndddz"], + "search": "twrrcryiylzmngclhof", + "tags": ["uftxx"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tdn", - "tags": ["sppfyoln"], + "search": "efivrqnpcrqwkhfbqkf", + "tags": ["cdvafocpysjwker"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "ixmdnigdrvlxgceqchx", - "tags": ["jcyzslczkecz"], + "include_smart_links": False, + "search": "lvkyllgsgbncmljfrpstyc", + "tags": ["xv"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "qpjjcomcpirlrqr", - "tags": ["fikndvimvm"], + "search": "oa", + "tags": ["xdl"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uhlc", - "tags": ["gndddz"], + "search": "twrrcryiylzmngclhof", + "tags": ["uftxx"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tdn", - "tags": ["sppfyoln"], + "search": "efivrqnpcrqwkhfbqkf", + "tags": ["cdvafocpysjwker"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "ixmdnigdrvlxgceqchx", - "tags": ["jcyzslczkecz"], + "include_smart_links": False, + "search": "lvkyllgsgbncmljfrpstyc", + "tags": ["xv"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "qpjjcomcpirlrqr", - "tags": ["fikndvimvm"], + "search": "oa", + "tags": ["xdl"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 75c2804..60b372a 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quae", + tracking_link_id="rerum", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quae", + tracking_link_id="rerum", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="harum", + tracking_link_id="omnis", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="eos", + tracking_link_id="in", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 1de2531..e8a2d28 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="distinctio", + trial_link_id="assumenda", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="distinctio", + trial_link_id="assumenda", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="voluptate", + trial_link_id="at", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="possimus", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="assumenda", + trial_link_id="nostrum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 1100e46..00ccd82 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="zjrisc", + name="xrbquznbkbofdmhozmxaufvla", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 3551f5fbba68388f3c5215acec8488b22b83bf30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 08:12:34 +0000 Subject: [PATCH 37/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 262 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index eb3560b..1ab5398 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-b86afc817b1c0d4b2263da6812323e9a65ab58a08f4521800c03e8b73fee064a.yml -openapi_spec_hash: 277e9d0d8eec92a152492d0c4848e0e9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-03ad84203a4ad47fc689c784399b8f4058f84f384ca02e91d13d74deafd1f464.yml +openapi_spec_hash: 1e03c0c31bc6b7ae69eb060385fa7895 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 1425657..7506a92 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="exercitationem", + message_id="ut", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 7e10c87..62b1f9f 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="deleniti", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="deleniti", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="consequatur", + list_id="deleniti", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="consequatur", + list_id="deleniti", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="consequatur", + list_id="deleniti", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index cea7d5d..dd90dfa 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="excepturi", + post_id="non", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="excepturi", + post_id="non", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="excepturi", + post_id="non", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="excepturi", + post_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="excepturi", + post_id="non", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=24, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 29041a5..4155167 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="temporibus", + path_story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="temporibus", + path_story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="temporibus", + path_story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="temporibus", + path_story_id="vero", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="temporibus", + story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="temporibus", + story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="temporibus", + story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="temporibus", + story_id="vero", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="temporibus", + path_story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="temporibus", + path_story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="temporibus", + path_story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="temporibus", + path_story_id="vero", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="temporibus", + story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="temporibus", + story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="temporibus", + story_id="vero", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="temporibus", + story_id="vero", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 02cf31a..b456dde 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "sed", + "et", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "sed", + "et", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "sed", + "et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "sed", + "et", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "sed", + "et", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "sed", + "et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 9568823..5a42c39 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="nisi", + auth_id="perferendis", auth_type="raw_data", - cookies="ut", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": "r+T2d-~2k", + "password": "d!(``m", "port": 8080, - "username": "minima", + "username": "quas", }, - email="keanu.nader@example.org", - force_connect=False, - name="velit", - password="l;pcSTW#YvN)", + email="sarah73@example.org", + force_connect=True, + name="numquam", + password="y None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="nisi", + auth_id="perferendis", auth_type="raw_data", - cookies="ut", + cookies="sit", custom_proxy={ "host": "proxy.example.com", - "password": "r+T2d-~2k", + "password": "d!(``m", "port": 8080, - "username": "minima", + "username": "quas", }, - email="keanu.nader@example.org", - force_connect=False, - name="velit", - password="l;pcSTW#YvN)", + email="sarah73@example.org", + force_connect=True, + name="numquam", + password="y None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index c2fed8c..144bf11 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="sed", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="sed", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="aut", + smart_link_id="sed", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aut", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="in", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="in", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="maxime", + smart_link_id="in", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="maxime", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="sed", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="sed", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="aut", + smart_link_id="sed", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aut", + smart_link_id="sed", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="iusto", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="in", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="in", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="maxime", + smart_link_id="in", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="maxime", + smart_link_id="in", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="provident", + smart_link_id="sunt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="atque", + smart_link_id="adipisci", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="reprehenderit", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 9e150bf..7bacbc0 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "twrrcryiylzmngclhof", - "tags": ["uftxx"], + "search": "afamecskm", + "tags": ["wcxiufr"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "efivrqnpcrqwkhfbqkf", - "tags": ["cdvafocpysjwker"], + "search": "jt", + "tags": ["frlnemgiwob"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "lvkyllgsgbncmljfrpstyc", - "tags": ["xv"], + "search": "uibdcyqrsdcacxrbw", + "tags": ["pgaz"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "oa", - "tags": ["xdl"], + "search": "rkooquoqzntdgckxsjuu", + "tags": ["fcqmuyzbmkfa"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "twrrcryiylzmngclhof", - "tags": ["uftxx"], + "search": "afamecskm", + "tags": ["wcxiufr"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "efivrqnpcrqwkhfbqkf", - "tags": ["cdvafocpysjwker"], + "search": "jt", + "tags": ["frlnemgiwob"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "lvkyllgsgbncmljfrpstyc", - "tags": ["xv"], + "search": "uibdcyqrsdcacxrbw", + "tags": ["pgaz"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "oa", - "tags": ["xdl"], + "search": "rkooquoqzntdgckxsjuu", + "tags": ["fcqmuyzbmkfa"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 60b372a..629bbf5 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="rerum", + tracking_link_id="labore", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="rerum", + tracking_link_id="labore", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="omnis", + tracking_link_id="delectus", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="in", + tracking_link_id="tempore", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index e8a2d28..0b0ae12 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="assumenda", + trial_link_id="debitis", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="assumenda", + trial_link_id="debitis", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="at", + trial_link_id="illum", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="possimus", + trial_link_id="qui", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="nostrum", + trial_link_id="laborum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 00ccd82..2aac27b 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="xrbquznbkbofdmhozmxaufvla", + name="lbafjgqoiwnq", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 8bbc9d67d84d394af2936841c24ca07f5cce0944 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 14:12:35 +0000 Subject: [PATCH 38/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 48 +++++----- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 32 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 14 files changed, 250 insertions(+), 250 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1ab5398..4f56253 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-03ad84203a4ad47fc689c784399b8f4058f84f384ca02e91d13d74deafd1f464.yml -openapi_spec_hash: 1e03c0c31bc6b7ae69eb060385fa7895 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21f774f4bf5df95043704abdd4ab9f3da7d62b668d1528260c6997910f597873.yml +openapi_spec_hash: 636b1d0d3a9c53ad92114b30c4e616e7 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a92..3ec2b4d 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="itaque", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="itaque", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="itaque", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 62b1f9f..24f1d8f 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="deleniti", + list_id="voluptate", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="deleniti", + list_id="voluptate", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="deleniti", + list_id="voluptate", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="deleniti", + list_id="voluptate", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="deleniti", + list_id="voluptate", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index dd90dfa..810c025 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="non", + post_id="at", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="non", + post_id="at", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="non", + post_id="at", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="non", + post_id="at", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="non", + post_id="at", account="", ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 4155167..bf6be74 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="vero", + path_story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="vero", + path_story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="vero", + path_story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="vero", + path_story_id="aliquam", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="vero", + story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="vero", + story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="vero", + story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="vero", + story_id="aliquam", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="vero", + path_story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="vero", + path_story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="vero", + path_story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="vero", + path_story_id="aliquam", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="vero", + story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="vero", + story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="vero", + story_id="aliquam", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="vero", + story_id="aliquam", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index b456dde..7cdb96c 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "et", + "illum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "et", + "illum", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "et", + "illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "et", + "illum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "et", + "illum", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "et", + "illum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 5a42c39..3e4e7ff 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="perferendis", - auth_type="raw_data", - cookies="sit", + auth_id="esse", + auth_type="email_password", + cookies="in", custom_proxy={ "host": "proxy.example.com", - "password": "d!(``m", + "password": ":fL:=7r", "port": 8080, - "username": "quas", + "username": "rerum", }, - email="sarah73@example.org", - force_connect=True, - name="numquam", - password="y None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="perferendis", - auth_type="raw_data", - cookies="sit", + auth_id="esse", + auth_type="email_password", + cookies="in", custom_proxy={ "host": "proxy.example.com", - "password": "d!(``m", + "password": ":fL:=7r", "port": 8080, - "username": "quas", + "username": "rerum", }, - email="sarah73@example.org", - force_connect=True, - name="numquam", - password="y None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 144bf11..7da82f6 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="in", + smart_link_id="ratione", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="in", + smart_link_id="ratione", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="in", + smart_link_id="ratione", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="in", + smart_link_id="ratione", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sed", + smart_link_id="voluptatem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="praesentium", + smart_link_id="qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="in", + smart_link_id="ratione", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="in", + smart_link_id="ratione", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="in", + smart_link_id="ratione", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="in", + smart_link_id="ratione", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="sunt", + smart_link_id="quibusdam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="adipisci", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="aut", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 7bacbc0..c7a5479 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "afamecskm", - "tags": ["wcxiufr"], + "search": "wsceywnnmlox", + "tags": ["tcbojxljbybjijtypzssrhr"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "jt", - "tags": ["frlnemgiwob"], + "search": "djbqhqbs", + "tags": ["cnovotaxvcevofnzbvu"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "uibdcyqrsdcacxrbw", - "tags": ["pgaz"], + "search": "vfiaeuzx", + "tags": ["ufscmzsjzl"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "rkooquoqzntdgckxsjuu", - "tags": ["fcqmuyzbmkfa"], + "search": "hi", + "tags": ["iluqrwswb"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "afamecskm", - "tags": ["wcxiufr"], + "search": "wsceywnnmlox", + "tags": ["tcbojxljbybjijtypzssrhr"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "jt", - "tags": ["frlnemgiwob"], + "search": "djbqhqbs", + "tags": ["cnovotaxvcevofnzbvu"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "uibdcyqrsdcacxrbw", - "tags": ["pgaz"], + "search": "vfiaeuzx", + "tags": ["ufscmzsjzl"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "rkooquoqzntdgckxsjuu", - "tags": ["fcqmuyzbmkfa"], + "search": "hi", + "tags": ["iluqrwswb"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 629bbf5..7be1488 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="labore", + tracking_link_id="et", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="labore", + tracking_link_id="et", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="labore", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="labore", + tracking_link_id="et", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="delectus", + tracking_link_id="alias", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="tempore", + tracking_link_id="sed", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 0b0ae12..03cac21 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="debitis", + trial_link_id="dolores", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="debitis", + trial_link_id="dolores", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="illum", + trial_link_id="sapiente", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="qui", + trial_link_id="debitis", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="laborum", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 2aac27b..f1ec2e5 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="lbafjgqoiwnq", + name="mooxmkikvpsrjrrwo", ) @pytest.mark.skip(reason="Mock server tests are disabled") From f0a25cd6b38cdae7c64dfeb113c489b216dda816 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 17:12:36 +0000 Subject: [PATCH 39/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 15 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4f56253..a60308b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-21f774f4bf5df95043704abdd4ab9f3da7d62b668d1528260c6997910f597873.yml -openapi_spec_hash: 636b1d0d3a9c53ad92114b30c4e616e7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0df6a9e16609368c35c32ee82fa44621fe492cc33106b4569a52bf2787824e9a.yml +openapi_spec_hash: a352fe439e3bacb87c9bc566e72acbc0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 3ec2b4d..c1c7f05 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="itaque", + message_id="est", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="itaque", + message_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="itaque", + message_id="est", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 24f1d8f..c1bc309 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="voluptate", + list_id="est", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptate", + list_id="est", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="voluptate", + list_id="est", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="voluptate", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="voluptate", + list_id="est", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 810c025..4ec1f66 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="at", + post_id="voluptate", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="at", + post_id="voluptate", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="at", + post_id="voluptate", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="at", + post_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="at", + post_id="voluptate", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index a62ccbd..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index bf6be74..63ac192 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="aliquam", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="aliquam", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="aliquam", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="aliquam", + path_story_id="sint", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="aliquam", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="aliquam", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="aliquam", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="aliquam", + story_id="sint", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="aliquam", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="aliquam", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="aliquam", + path_story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="aliquam", + path_story_id="sint", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="aliquam", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="aliquam", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="aliquam", + story_id="sint", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="aliquam", + story_id="sint", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 7cdb96c..2edd641 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "illum", + "ea", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "illum", + "ea", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "illum", + "ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "illum", + "ea", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "illum", + "ea", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "illum", + "ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 3e4e7ff..caa683b 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="esse", - auth_type="email_password", - cookies="in", + auth_id="omnis", + auth_type="raw_data", + cookies="exercitationem", custom_proxy={ "host": "proxy.example.com", - "password": ":fL:=7r", + "password": "Q704]UxB_U1/S", "port": 8080, - "username": "rerum", + "username": "porro", }, - email="scorkery@example.net", + email="margie95@example.org", force_connect=False, - name="aut", - password="!wpJI\\$dI*", - proxy_country="us", - user_agent="neque", - xbc="quam", + name="dicta", + password="yN#:\\gzj4@!WS%", + proxy_country="uk", + user_agent="voluptatem", + xbc="molestiae", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="esse", - auth_type="email_password", - cookies="in", + auth_id="omnis", + auth_type="raw_data", + cookies="exercitationem", custom_proxy={ "host": "proxy.example.com", - "password": ":fL:=7r", + "password": "Q704]UxB_U1/S", "port": 8080, - "username": "rerum", + "username": "porro", }, - email="scorkery@example.net", + email="margie95@example.org", force_connect=False, - name="aut", - password="!wpJI\\$dI*", - proxy_country="us", - user_agent="neque", - xbc="quam", + name="dicta", + password="yN#:\\gzj4@!WS%", + proxy_country="uk", + user_agent="voluptatem", + xbc="molestiae", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index b215885..413a2df 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="purchases", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="purchases", + type="likes", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 7da82f6..2c38322 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -206,7 +206,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +214,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +228,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", ) assert response.is_closed is True @@ -240,7 +240,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +262,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +270,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +286,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -298,7 +298,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +320,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +328,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +343,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", ) assert response.is_closed is True @@ -355,7 +355,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +377,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +385,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", limit=50, min_spend=1, offset=0, @@ -396,7 +396,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", ) assert response.is_closed is True @@ -408,7 +408,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +430,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", ) assert smart_link is None @@ -438,7 +438,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +449,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", ) assert response.is_closed is True @@ -461,7 +461,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +483,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +491,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +501,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -513,7 +513,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -716,7 +716,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +724,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +738,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", ) assert response.is_closed is True @@ -750,7 +750,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="voluptatem", + smart_link_id="vitae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +772,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +780,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +796,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -808,7 +808,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="qui", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +830,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +838,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +853,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", ) assert response.is_closed is True @@ -865,7 +865,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="ratione", + smart_link_id="laboriosam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +887,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +895,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", limit=50, min_spend=1, offset=0, @@ -906,7 +906,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", ) assert response.is_closed is True @@ -918,7 +918,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quibusdam", + smart_link_id="vel", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +940,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", ) assert smart_link is None @@ -948,7 +948,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +959,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", ) assert response.is_closed is True @@ -971,7 +971,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="dolor", + smart_link_id="accusamus", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +993,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1001,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1011,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", ) assert response.is_closed is True @@ -1023,7 +1023,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="dolorem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index c7a5479..c0564e8 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wsceywnnmlox", - "tags": ["tcbojxljbybjijtypzssrhr"], + "search": "wqjdgosbildbzpvhrkozloryd", + "tags": ["oc"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "djbqhqbs", - "tags": ["cnovotaxvcevofnzbvu"], + "search": "uopxlltmdlgjlyabvmwudejxz", + "tags": ["lreozaznnirijdpfstvzqoh"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "vfiaeuzx", - "tags": ["ufscmzsjzl"], + "include_smart_links": True, + "search": "amxtxexsx", + "tags": ["pmmlz"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "hi", - "tags": ["iluqrwswb"], + "include_smart_links": True, + "search": "rvdeuqbx", + "tags": ["cixjvfqaxil"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wsceywnnmlox", - "tags": ["tcbojxljbybjijtypzssrhr"], + "search": "wqjdgosbildbzpvhrkozloryd", + "tags": ["oc"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "djbqhqbs", - "tags": ["cnovotaxvcevofnzbvu"], + "search": "uopxlltmdlgjlyabvmwudejxz", + "tags": ["lreozaznnirijdpfstvzqoh"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "vfiaeuzx", - "tags": ["ufscmzsjzl"], + "include_smart_links": True, + "search": "amxtxexsx", + "tags": ["pmmlz"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "hi", - "tags": ["iluqrwswb"], + "include_smart_links": True, + "search": "rvdeuqbx", + "tags": ["cixjvfqaxil"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 7be1488..c4f45e4 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="facere", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="facere", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="et", + tracking_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="facere", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="alias", + tracking_link_id="ut", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="sed", + tracking_link_id="minima", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 03cac21..4213b99 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="dolores", + trial_link_id="eum", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dolores", + trial_link_id="eum", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="dolores", + trial_link_id="eum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="dolores", + trial_link_id="eum", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="sapiente", + trial_link_id="non", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="debitis", + trial_link_id="fuga", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="quasi", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f1ec2e5..5aee5c1 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="mooxmkikvpsrjrrwo", + name="kwbbvsmt", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 98a84e77ee2bf89462136939c7b6ddfd39a0c619 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 11 Jun 2026 18:12:37 +0000 Subject: [PATCH 40/48] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/resources/smart_links.py | 12 ++- .../types/smart_link_list_params.py | 5 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 +-- .../api_resources/stories/test_highlights.py | 32 +++--- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 36 +++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 98 ++++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 270 insertions(+), 257 deletions(-) diff --git a/.stats.yml b/.stats.yml index a60308b..1b10c3a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-0df6a9e16609368c35c32ee82fa44621fe492cc33106b4569a52bf2787824e9a.yml -openapi_spec_hash: a352fe439e3bacb87c9bc566e72acbc0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bee7507b20d149239fdbacb3de6b342dcefd08eefeabf1fd35d38cd898264298.yml +openapi_spec_hash: 6fe4334c602d4eaeef46c509545a17b3 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/smart_links.py b/src/onlyfansapi/resources/smart_links.py index 375f214..5788f20 100644 --- a/src/onlyfansapi/resources/smart_links.py +++ b/src/onlyfansapi/resources/smart_links.py @@ -160,6 +160,7 @@ def list( meta_pixel_ids: Optional[str] | Omit = omit, name: Optional[str] | Omit = omit, offset: int | Omit = omit, + pixel_ids: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -176,12 +177,14 @@ def list( limit: The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. - meta_pixel_ids: Comma-separated Meta Pixel IDs to include. + meta_pixel_ids: Deprecated alias for `pixel_ids`. Comma-separated Pixel IDs to include. name: Filter Smart Links by name. Must not be greater than 255 characters. offset: The offset used for pagination. Default `0`. Must be at least 0. + pixel_ids: Comma-separated ad platform Pixel IDs to include. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -204,6 +207,7 @@ def list( "meta_pixel_ids": meta_pixel_ids, "name": name, "offset": offset, + "pixel_ids": pixel_ids, }, smart_link_list_params.SmartLinkListParams, ), @@ -741,6 +745,7 @@ async def list( meta_pixel_ids: Optional[str] | Omit = omit, name: Optional[str] | Omit = omit, offset: int | Omit = omit, + pixel_ids: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -757,12 +762,14 @@ async def list( limit: The number of Smart Links to return. Default `50`. Must be at least 1. Must not be greater than 1000. - meta_pixel_ids: Comma-separated Meta Pixel IDs to include. + meta_pixel_ids: Deprecated alias for `pixel_ids`. Comma-separated Pixel IDs to include. name: Filter Smart Links by name. Must not be greater than 255 characters. offset: The offset used for pagination. Default `0`. Must be at least 0. + pixel_ids: Comma-separated ad platform Pixel IDs to include. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -785,6 +792,7 @@ async def list( "meta_pixel_ids": meta_pixel_ids, "name": name, "offset": offset, + "pixel_ids": pixel_ids, }, smart_link_list_params.SmartLinkListParams, ), diff --git a/src/onlyfansapi/types/smart_link_list_params.py b/src/onlyfansapi/types/smart_link_list_params.py index ca28e0e..0cafb95 100644 --- a/src/onlyfansapi/types/smart_link_list_params.py +++ b/src/onlyfansapi/types/smart_link_list_params.py @@ -19,10 +19,13 @@ class SmartLinkListParams(TypedDict, total=False): """ meta_pixel_ids: Optional[str] - """Comma-separated Meta Pixel IDs to include.""" + """Deprecated alias for `pixel_ids`. Comma-separated Pixel IDs to include.""" name: Optional[str] """Filter Smart Links by name. Must not be greater than 255 characters.""" offset: int """The offset used for pagination. Default `0`. Must be at least 0.""" + + pixel_ids: Optional[str] + """Comma-separated ad platform Pixel IDs to include.""" diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index c1c7f05..10cfa2e 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="quia", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="est", + message_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="est", + message_id="quia", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c1bc309..2a8f1b9 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="quo", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="quo", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="quo", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="est", + list_id="quo", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="quo", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 4ec1f66..e1ef0f7 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="voluptate", + post_id="tenetur", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="voluptate", + post_id="tenetur", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="voluptate", + post_id="tenetur", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="voluptate", + post_id="tenetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="voluptate", + post_id="tenetur", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..fc7b163 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=6, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 63ac192..dc9a9f1 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="sint", + path_story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="sint", + path_story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="occaecati", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="sint", + story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="sint", + story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="occaecati", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="sint", + path_story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="sint", + path_story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="sint", + path_story_id="occaecati", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="sint", + story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="sint", + story_id="occaecati", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="sint", + story_id="occaecati", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 2edd641..d5eacef 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "ea", + "ipsam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "ea", + "ipsam", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "ea", + "ipsam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "ea", + "ipsam", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "ea", + "ipsam", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "ea", + "ipsam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index caa683b..b2f2bd3 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="omnis", + auth_id="voluptate", auth_type="raw_data", - cookies="exercitationem", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "Q704]UxB_U1/S", + "password": "Jr6hkw[`?CUz#A#3", proxy_country="uk", - user_agent="voluptatem", - xbc="molestiae", + user_agent="aspernatur", + xbc="quo", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="omnis", + auth_id="voluptate", auth_type="raw_data", - cookies="exercitationem", + cookies="accusantium", custom_proxy={ "host": "proxy.example.com", - "password": "Q704]UxB_U1/S", + "password": "Jr6hkw[`?CUz#A#3", proxy_country="uk", - user_agent="voluptatem", - xbc="molestiae", + user_agent="aspernatur", + xbc="quo", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 413a2df..4d3e426 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="likes", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="likes", + type="mentions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 2c38322..67eae6b 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -135,6 +135,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: meta_pixel_ids="1,2", name="Instagram", offset=0, + pixel_ids="1,2", ) assert_matches_type(SmartLinkListResponse, smart_link, path=["response"]) @@ -206,7 +207,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -214,7 +215,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -228,7 +229,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", ) assert response.is_closed is True @@ -240,7 +241,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -262,7 +263,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -270,7 +271,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -286,7 +287,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", ) assert response.is_closed is True @@ -298,7 +299,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -320,7 +321,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -328,7 +329,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -343,7 +344,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", ) assert response.is_closed is True @@ -355,7 +356,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -377,7 +378,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="vel", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -385,7 +386,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="vel", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -396,7 +397,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="vel", + smart_link_id="odit", ) assert response.is_closed is True @@ -408,7 +409,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="vel", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -430,7 +431,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", ) assert smart_link is None @@ -438,7 +439,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -449,7 +450,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", ) assert response.is_closed is True @@ -461,7 +462,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -483,7 +484,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -491,7 +492,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -501,7 +502,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", ) assert response.is_closed is True @@ -513,7 +514,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -645,6 +646,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) meta_pixel_ids="1,2", name="Instagram", offset=0, + pixel_ids="1,2", ) assert_matches_type(SmartLinkListResponse, smart_link, path=["response"]) @@ -716,7 +718,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -724,7 +726,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -738,7 +740,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", ) assert response.is_closed is True @@ -750,7 +752,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="vitae", + smart_link_id="aut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -772,7 +774,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -780,7 +782,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -796,7 +798,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", ) assert response.is_closed is True @@ -808,7 +810,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="aliquam", + smart_link_id="excepturi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -830,7 +832,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -838,7 +840,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -853,7 +855,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", ) assert response.is_closed is True @@ -865,7 +867,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="laboriosam", + smart_link_id="maxime", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -887,7 +889,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="vel", + smart_link_id="odit", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -895,7 +897,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="vel", + smart_link_id="odit", limit=50, min_spend=1, offset=0, @@ -906,7 +908,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="vel", + smart_link_id="odit", ) assert response.is_closed is True @@ -918,7 +920,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="vel", + smart_link_id="odit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -940,7 +942,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", ) assert smart_link is None @@ -948,7 +950,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -959,7 +961,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", ) assert response.is_closed is True @@ -971,7 +973,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="accusamus", + smart_link_id="libero", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -993,7 +995,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1001,7 +1003,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1011,7 +1013,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", ) assert response.is_closed is True @@ -1023,7 +1025,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="dolorem", + smart_link_id="quia", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index c0564e8..a0f5ef6 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wqjdgosbildbzpvhrkozloryd", - "tags": ["oc"], + "search": "nxeqi", + "tags": ["z"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uopxlltmdlgjlyabvmwudejxz", - "tags": ["lreozaznnirijdpfstvzqoh"], + "search": "iackoazlgioopjsrzejhlnu", + "tags": ["yudrsdcexhixwlezkaeuayo"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "amxtxexsx", - "tags": ["pmmlz"], + "search": "cdsobldwnhwvzkxgirnvmgvi", + "tags": ["xz"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "rvdeuqbx", - "tags": ["cixjvfqaxil"], + "include_smart_links": False, + "search": "gvobxssjatknclxt", + "tags": ["wfzinazhx"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "wqjdgosbildbzpvhrkozloryd", - "tags": ["oc"], + "search": "nxeqi", + "tags": ["z"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uopxlltmdlgjlyabvmwudejxz", - "tags": ["lreozaznnirijdpfstvzqoh"], + "search": "iackoazlgioopjsrzejhlnu", + "tags": ["yudrsdcexhixwlezkaeuayo"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "amxtxexsx", - "tags": ["pmmlz"], + "search": "cdsobldwnhwvzkxgirnvmgvi", + "tags": ["xz"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "rvdeuqbx", - "tags": ["cixjvfqaxil"], + "include_smart_links": False, + "search": "gvobxssjatknclxt", + "tags": ["wfzinazhx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index c4f45e4..aa1a19e 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="facere", + tracking_link_id="quo", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="facere", + tracking_link_id="quo", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="ut", + tracking_link_id="voluptates", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="minima", + tracking_link_id="velit", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 4213b99..b3661fd 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="eum", + trial_link_id="non", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="eum", + trial_link_id="non", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="eum", + trial_link_id="non", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="eum", + trial_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="eum", + trial_link_id="non", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="non", + trial_link_id="similique", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="est", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="quasi", + trial_link_id="ipsa", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 5aee5c1..12f2d79 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="kwbbvsmt", + name="hbvr", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kwbbvsmt", + name="hbvr", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kwbbvsmt", + name="hbvr", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="kwbbvsmt", + name="hbvr", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="kwbbvsmt", + name="hbvr", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kwbbvsmt", + name="hbvr", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="kwbbvsmt", + name="hbvr", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="kwbbvsmt", + name="hbvr", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 6b9ad4e06d8663bb4a7959432dbdd1f253b3436e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 01:12:35 +0000 Subject: [PATCH 41/48] feat(api): api update --- .stats.yml | 4 +- .../resources/smart_link_postbacks.py | 54 ++++++++++- .../smart_link_postback_create_params.py | 27 +++++- .../smart_link_postback_create_response.py | 14 ++- .../smart_link_postback_list_response.py | 13 +++ .../smart_link_postback_retrieve_response.py | 22 ++++- .../smart_link_postback_update_params.py | 27 +++++- .../smart_link_postback_update_response.py | 22 ++++- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_notifications.py | 4 +- .../test_smart_link_postbacks.py | 32 +++++++ tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 22 files changed, 461 insertions(+), 262 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1b10c3a..99bc67b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bee7507b20d149239fdbacb3de6b342dcefd08eefeabf1fd35d38cd898264298.yml -openapi_spec_hash: 6fe4334c602d4eaeef46c509545a17b3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5a86517cb84478db1099c218ff317bf61ec3b1a0e6b5559f18d86724c714c460.yml +openapi_spec_hash: ef07d9eb4d7cb67521c6e7a82cb3cc5e config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/resources/smart_link_postbacks.py b/src/onlyfansapi/resources/smart_link_postbacks.py index 9fc6357..d3301ae 100644 --- a/src/onlyfansapi/resources/smart_link_postbacks.py +++ b/src/onlyfansapi/resources/smart_link_postbacks.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import Iterable, Optional from typing_extensions import Literal import httpx @@ -56,6 +56,9 @@ def create( conversion_types: SequenceNotStr[str], smart_link_scope: Literal["global", "campaign_specific"], url: str, + body: str | Omit = omit, + headers: Iterable[smart_link_postback_create_params.Header] | Omit = omit, + http_method: Literal["GET", "POST"] | Omit = omit, smart_link_ids: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -76,6 +79,13 @@ def create( url: The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + body: Optional request body template for POST postbacks. Variables are replaced when + the postback is dispatched. + + headers: Optional request headers. Header values may include postback variables. + + http_method: HTTP method used for the postback request. Defaults to `GET` when omitted. + smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. extra_headers: Send extra headers @@ -93,6 +103,9 @@ def create( "conversion_types": conversion_types, "smart_link_scope": smart_link_scope, "url": url, + "body": body, + "headers": headers, + "http_method": http_method, "smart_link_ids": smart_link_ids, }, smart_link_postback_create_params.SmartLinkPostbackCreateParams, @@ -141,6 +154,9 @@ def update( conversion_types: SequenceNotStr[str], smart_link_scope: Literal["global", "campaign_specific"], url: str, + body: str | Omit = omit, + headers: Iterable[smart_link_postback_update_params.Header] | Omit = omit, + http_method: Literal["GET", "POST"] | Omit = omit, smart_link_ids: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -159,6 +175,13 @@ def update( url: The destination URL. + body: Optional request body template for POST postbacks. Variables are replaced when + the postback is dispatched. + + headers: Optional request headers. Header values may include postback variables. + + http_method: HTTP method used for the postback request. Existing value is kept when omitted. + smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. extra_headers: Send extra headers @@ -176,6 +199,9 @@ def update( "conversion_types": conversion_types, "smart_link_scope": smart_link_scope, "url": url, + "body": body, + "headers": headers, + "http_method": http_method, "smart_link_ids": smart_link_ids, }, smart_link_postback_update_params.SmartLinkPostbackUpdateParams, @@ -265,6 +291,9 @@ async def create( conversion_types: SequenceNotStr[str], smart_link_scope: Literal["global", "campaign_specific"], url: str, + body: str | Omit = omit, + headers: Iterable[smart_link_postback_create_params.Header] | Omit = omit, + http_method: Literal["GET", "POST"] | Omit = omit, smart_link_ids: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -285,6 +314,13 @@ async def create( url: The destination URL. Variables such as `{external_click_id}`, `{fbclid}`, `{gclid}`, and `{ttclid}` are replaced when the postback is dispatched. + body: Optional request body template for POST postbacks. Variables are replaced when + the postback is dispatched. + + headers: Optional request headers. Header values may include postback variables. + + http_method: HTTP method used for the postback request. Defaults to `GET` when omitted. + smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. extra_headers: Send extra headers @@ -302,6 +338,9 @@ async def create( "conversion_types": conversion_types, "smart_link_scope": smart_link_scope, "url": url, + "body": body, + "headers": headers, + "http_method": http_method, "smart_link_ids": smart_link_ids, }, smart_link_postback_create_params.SmartLinkPostbackCreateParams, @@ -350,6 +389,9 @@ async def update( conversion_types: SequenceNotStr[str], smart_link_scope: Literal["global", "campaign_specific"], url: str, + body: str | Omit = omit, + headers: Iterable[smart_link_postback_update_params.Header] | Omit = omit, + http_method: Literal["GET", "POST"] | Omit = omit, smart_link_ids: SequenceNotStr[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -368,6 +410,13 @@ async def update( url: The destination URL. + body: Optional request body template for POST postbacks. Variables are replaced when + the postback is dispatched. + + headers: Optional request headers. Header values may include postback variables. + + http_method: HTTP method used for the postback request. Existing value is kept when omitted. + smart_link_ids: Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`. extra_headers: Send extra headers @@ -385,6 +434,9 @@ async def update( "conversion_types": conversion_types, "smart_link_scope": smart_link_scope, "url": url, + "body": body, + "headers": headers, + "http_method": http_method, "smart_link_ids": smart_link_ids, }, smart_link_postback_update_params.SmartLinkPostbackUpdateParams, diff --git a/src/onlyfansapi/types/smart_link_postback_create_params.py b/src/onlyfansapi/types/smart_link_postback_create_params.py index ac84157..dde8295 100644 --- a/src/onlyfansapi/types/smart_link_postback_create_params.py +++ b/src/onlyfansapi/types/smart_link_postback_create_params.py @@ -2,11 +2,12 @@ from __future__ import annotations +from typing import Iterable, Optional from typing_extensions import Literal, Required, TypedDict from .._types import SequenceNotStr -__all__ = ["SmartLinkPostbackCreateParams"] +__all__ = ["SmartLinkPostbackCreateParams", "Header"] class SmartLinkPostbackCreateParams(TypedDict, total=False): @@ -26,5 +27,29 @@ class SmartLinkPostbackCreateParams(TypedDict, total=False): are replaced when the postback is dispatched. """ + body: str + """Optional request body template for POST postbacks. + + Variables are replaced when the postback is dispatched. + """ + + headers: Iterable[Header] + """Optional request headers. Header values may include postback variables.""" + + http_method: Literal["GET", "POST"] + """HTTP method used for the postback request. Defaults to `GET` when omitted.""" + smart_link_ids: SequenceNotStr[str] """Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.""" + + +class Header(TypedDict, total=False): + name: Optional[str] + """This field is required when headers.\\**.value is present. + + Must match the regex /\\AA[A-Za-z0-9!#$%&'*+.^_`|~-]+\\zz/. Must not be greater than + 100 characters. + """ + + value: Optional[str] + """Must not be greater than 2000 characters.""" diff --git a/src/onlyfansapi/types/smart_link_postback_create_response.py b/src/onlyfansapi/types/smart_link_postback_create_response.py index b6681b1..206fd9e 100644 --- a/src/onlyfansapi/types/smart_link_postback_create_response.py +++ b/src/onlyfansapi/types/smart_link_postback_create_response.py @@ -6,7 +6,7 @@ from .._models import BaseModel -__all__ = ["SmartLinkPostbackCreateResponse", "_Meta", "_Meta_Cache", "_Meta_Credits", "Data"] +__all__ = ["SmartLinkPostbackCreateResponse", "_Meta", "_Meta_Cache", "_Meta_Credits", "Data", "DataHeader"] class _Meta_Cache(BaseModel): @@ -29,13 +29,25 @@ class _Meta(BaseModel): api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) +class DataHeader(BaseModel): + name: Optional[str] = None + + value: Optional[str] = None + + class Data(BaseModel): id: Optional[int] = None + body: Optional[str] = None + conversion_types: Optional[List[str]] = None created_at: Optional[str] = None + headers: Optional[List[DataHeader]] = None + + http_method: Optional[str] = None + latest_response: Optional[str] = None smart_link_ids: Optional[List[object]] = None diff --git a/src/onlyfansapi/types/smart_link_postback_list_response.py b/src/onlyfansapi/types/smart_link_postback_list_response.py index 865adf2..4148792 100644 --- a/src/onlyfansapi/types/smart_link_postback_list_response.py +++ b/src/onlyfansapi/types/smart_link_postback_list_response.py @@ -12,6 +12,7 @@ "_Meta_Cache", "_Meta_Credits", "Data", + "DataHeader", "DataLatestResponse", "DataSmartLink", ] @@ -37,6 +38,12 @@ class _Meta(BaseModel): api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) +class DataHeader(BaseModel): + name: Optional[str] = None + + value: Optional[str] = None + + class DataLatestResponse(BaseModel): id: Optional[int] = None @@ -68,10 +75,16 @@ class DataSmartLink(BaseModel): class Data(BaseModel): id: Optional[int] = None + body: Optional[str] = None + conversion_types: Optional[List[str]] = None created_at: Optional[str] = None + headers: Optional[List[DataHeader]] = None + + http_method: Optional[str] = None + latest_response: Optional[DataLatestResponse] = None smart_link_ids: Optional[List[str]] = None diff --git a/src/onlyfansapi/types/smart_link_postback_retrieve_response.py b/src/onlyfansapi/types/smart_link_postback_retrieve_response.py index 6eadd6a..33eed37 100644 --- a/src/onlyfansapi/types/smart_link_postback_retrieve_response.py +++ b/src/onlyfansapi/types/smart_link_postback_retrieve_response.py @@ -6,7 +6,15 @@ from .._models import BaseModel -__all__ = ["SmartLinkPostbackRetrieveResponse", "_Meta", "_Meta_Cache", "_Meta_Credits", "Data", "DataSmartLink"] +__all__ = [ + "SmartLinkPostbackRetrieveResponse", + "_Meta", + "_Meta_Cache", + "_Meta_Credits", + "Data", + "DataHeader", + "DataSmartLink", +] class _Meta_Cache(BaseModel): @@ -29,6 +37,12 @@ class _Meta(BaseModel): api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) +class DataHeader(BaseModel): + name: Optional[str] = None + + value: Optional[str] = None + + class DataSmartLink(BaseModel): account_display_name: Optional[str] = None @@ -42,10 +56,16 @@ class DataSmartLink(BaseModel): class Data(BaseModel): id: Optional[int] = None + body: Optional[str] = None + conversion_types: Optional[List[str]] = None created_at: Optional[str] = None + headers: Optional[List[DataHeader]] = None + + http_method: Optional[str] = None + latest_response: Optional[str] = None smart_link_ids: Optional[List[str]] = None diff --git a/src/onlyfansapi/types/smart_link_postback_update_params.py b/src/onlyfansapi/types/smart_link_postback_update_params.py index 7863cc7..93a1e97 100644 --- a/src/onlyfansapi/types/smart_link_postback_update_params.py +++ b/src/onlyfansapi/types/smart_link_postback_update_params.py @@ -2,11 +2,12 @@ from __future__ import annotations +from typing import Iterable, Optional from typing_extensions import Literal, Required, TypedDict from .._types import SequenceNotStr -__all__ = ["SmartLinkPostbackUpdateParams"] +__all__ = ["SmartLinkPostbackUpdateParams", "Header"] class SmartLinkPostbackUpdateParams(TypedDict, total=False): @@ -19,5 +20,29 @@ class SmartLinkPostbackUpdateParams(TypedDict, total=False): url: Required[str] """The destination URL.""" + body: str + """Optional request body template for POST postbacks. + + Variables are replaced when the postback is dispatched. + """ + + headers: Iterable[Header] + """Optional request headers. Header values may include postback variables.""" + + http_method: Literal["GET", "POST"] + """HTTP method used for the postback request. Existing value is kept when omitted.""" + smart_link_ids: SequenceNotStr[str] """Smart Link ULIDs. Required when `smart_link_scope` is `campaign_specific`.""" + + +class Header(TypedDict, total=False): + name: Optional[str] + """This field is required when headers.\\**.value is present. + + Must match the regex /\\AA[A-Za-z0-9!#$%&'*+.^_`|~-]+\\zz/. Must not be greater than + 100 characters. + """ + + value: Optional[str] + """Must not be greater than 2000 characters.""" diff --git a/src/onlyfansapi/types/smart_link_postback_update_response.py b/src/onlyfansapi/types/smart_link_postback_update_response.py index fc416c1..018c951 100644 --- a/src/onlyfansapi/types/smart_link_postback_update_response.py +++ b/src/onlyfansapi/types/smart_link_postback_update_response.py @@ -6,7 +6,15 @@ from .._models import BaseModel -__all__ = ["SmartLinkPostbackUpdateResponse", "_Meta", "_Meta_Cache", "_Meta_Credits", "Data", "DataSmartLink"] +__all__ = [ + "SmartLinkPostbackUpdateResponse", + "_Meta", + "_Meta_Cache", + "_Meta_Credits", + "Data", + "DataHeader", + "DataSmartLink", +] class _Meta_Cache(BaseModel): @@ -29,6 +37,12 @@ class _Meta(BaseModel): api_credits: Optional[_Meta_Credits] = FieldInfo(alias="_credits", default=None) +class DataHeader(BaseModel): + name: Optional[str] = None + + value: Optional[str] = None + + class DataSmartLink(BaseModel): account_display_name: Optional[str] = None @@ -42,10 +56,16 @@ class DataSmartLink(BaseModel): class Data(BaseModel): id: Optional[int] = None + body: Optional[str] = None + conversion_types: Optional[List[str]] = None created_at: Optional[str] = None + headers: Optional[List[DataHeader]] = None + + http_method: Optional[str] = None + latest_response: Optional[str] = None smart_link_ids: Optional[List[str]] = None diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 10cfa2e..7506a92 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="ut", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quia", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quia", + message_id="ut", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 2a8f1b9..cd43c0b 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="aut", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="aut", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="quo", + list_id="aut", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="quo", + list_id="aut", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="quo", + list_id="aut", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e1ef0f7..e1c7372 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="tenetur", + post_id="consequuntur", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="tenetur", + post_id="consequuntur", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="tenetur", + post_id="consequuntur", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="tenetur", + post_id="consequuntur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="tenetur", + post_id="consequuntur", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index fc7b163..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=6, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index dc9a9f1..6304738 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="occaecati", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="occaecati", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="occaecati", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="occaecati", + story_id="nostrum", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="occaecati", + path_story_id="nostrum", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="occaecati", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="occaecati", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="occaecati", + story_id="nostrum", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="occaecati", + story_id="nostrum", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d5eacef..0b8f88f 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "ipsam", + "qui", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "ipsam", + "qui", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "ipsam", + "qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "ipsam", + "qui", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "ipsam", + "qui", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "ipsam", + "qui", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index b2f2bd3..a2698d1 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="voluptate", - auth_type="raw_data", - cookies="accusantium", + auth_id="impedit", + auth_type="mobile_app", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "Jr6'[x", "port": 8080, - "username": "ipsam", + "username": "optio", }, - email="fkirlin@example.com", + email="jarrell37@example.org", force_connect=False, - name="facilis", - password="9PX8`V>hkw[`?CUz#A#3", + name="totam", + password="Ut;aK1", proxy_country="uk", - user_agent="aspernatur", - xbc="quo", + user_agent="harum", + xbc="eos", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="voluptate", - auth_type="raw_data", - cookies="accusantium", + auth_id="impedit", + auth_type="mobile_app", + cookies="aut", custom_proxy={ "host": "proxy.example.com", - "password": "Jr6'[x", "port": 8080, - "username": "ipsam", + "username": "optio", }, - email="fkirlin@example.com", + email="jarrell37@example.org", force_connect=False, - name="facilis", - password="9PX8`V>hkw[`?CUz#A#3", + name="totam", + password="Ut;aK1", proxy_country="uk", - user_agent="aspernatur", - xbc="quo", + user_agent="harum", + xbc="eos", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4d3e426..1a80b27 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="mentions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="mentions", + type="onlyfans", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_link_postbacks.py b/tests/api_resources/test_smart_link_postbacks.py index d6a8f41..29c028a 100644 --- a/tests/api_resources/test_smart_link_postbacks.py +++ b/tests/api_resources/test_smart_link_postbacks.py @@ -40,6 +40,14 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", + body='{"click_id":"{click_id}","value":"{amount_gross}"}', + headers=[ + { + "name": "Authorization", + "value": "Bearer token", + } + ], + http_method="POST", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackCreateResponse, smart_link_postback, path=["response"]) @@ -127,6 +135,14 @@ def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: conversion_types=["new_subscriber"], smart_link_scope="global", url="https://example.com/postback?click={external_click_id}&type={conversion_type}", + body='{"click_id":"{click_id}","value":"{amount_gross}"}', + headers=[ + { + "name": "Authorization", + "value": "Bearer token", + } + ], + http_method="POST", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackUpdateResponse, smart_link_postback, path=["response"]) @@ -248,6 +264,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP conversion_types=["new_subscriber", "new_transaction"], smart_link_scope="campaign_specific", url="https://example.com/postback?click={external_click_id}&type={conversion_type}&gclid={gclid}", + body='{"click_id":"{click_id}","value":"{amount_gross}"}', + headers=[ + { + "name": "Authorization", + "value": "Bearer token", + } + ], + http_method="POST", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackCreateResponse, smart_link_postback, path=["response"]) @@ -335,6 +359,14 @@ async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAP conversion_types=["new_subscriber"], smart_link_scope="global", url="https://example.com/postback?click={external_click_id}&type={conversion_type}", + body='{"click_id":"{click_id}","value":"{amount_gross}"}', + headers=[ + { + "name": "Authorization", + "value": "Bearer token", + } + ], + http_method="POST", smart_link_ids=["01JTESTLINK000000000000001"], ) assert_matches_type(SmartLinkPostbackUpdateResponse, smart_link_postback, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 67eae6b..08eda06 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -207,7 +207,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -215,7 +215,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -229,7 +229,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -241,7 +241,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -263,7 +263,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -271,7 +271,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -287,7 +287,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", ) assert response.is_closed is True @@ -299,7 +299,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -321,7 +321,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="autem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -329,7 +329,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="autem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -344,7 +344,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="maxime", + smart_link_id="autem", ) assert response.is_closed is True @@ -356,7 +356,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="maxime", + smart_link_id="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -378,7 +378,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -386,7 +386,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", limit=50, min_spend=1, offset=0, @@ -397,7 +397,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", ) assert response.is_closed is True @@ -409,7 +409,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -431,7 +431,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", ) assert smart_link is None @@ -439,7 +439,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -450,7 +450,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", ) assert response.is_closed is True @@ -462,7 +462,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -484,7 +484,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -492,7 +492,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -502,7 +502,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", ) assert response.is_closed is True @@ -514,7 +514,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -718,7 +718,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -726,7 +726,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -740,7 +740,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", ) assert response.is_closed is True @@ -752,7 +752,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aut", + smart_link_id="voluptate", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -774,7 +774,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -782,7 +782,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -798,7 +798,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", ) assert response.is_closed is True @@ -810,7 +810,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="excepturi", + smart_link_id="sequi", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -832,7 +832,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="autem", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -840,7 +840,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="maxime", + smart_link_id="autem", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -855,7 +855,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="maxime", + smart_link_id="autem", ) assert response.is_closed is True @@ -867,7 +867,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="maxime", + smart_link_id="autem", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -889,7 +889,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -897,7 +897,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", limit=50, min_spend=1, offset=0, @@ -908,7 +908,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", ) assert response.is_closed is True @@ -920,7 +920,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="odit", + smart_link_id="repudiandae", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -942,7 +942,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", ) assert smart_link is None @@ -950,7 +950,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -961,7 +961,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", ) assert response.is_closed is True @@ -973,7 +973,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="libero", + smart_link_id="rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -995,7 +995,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1003,7 +1003,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1013,7 +1013,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", ) assert response.is_closed is True @@ -1025,7 +1025,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quia", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index a0f5ef6..56454a5 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "nxeqi", - "tags": ["z"], + "search": "rqqtkjnknlfzmfls", + "tags": ["hylpqdvepchoy"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "iackoazlgioopjsrzejhlnu", - "tags": ["yudrsdcexhixwlezkaeuayo"], + "search": "ykyjxnbqakck", + "tags": ["jso"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "cdsobldwnhwvzkxgirnvmgvi", - "tags": ["xz"], + "include_smart_links": False, + "search": "flxwktfjgtj", + "tags": ["iaqrfrdvomtecdnppk"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "gvobxssjatknclxt", - "tags": ["wfzinazhx"], + "include_smart_links": True, + "search": "bcummcznprynfodfwtqt", + "tags": ["nleccjiglzauxnn"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "nxeqi", - "tags": ["z"], + "search": "rqqtkjnknlfzmfls", + "tags": ["hylpqdvepchoy"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "iackoazlgioopjsrzejhlnu", - "tags": ["yudrsdcexhixwlezkaeuayo"], + "search": "ykyjxnbqakck", + "tags": ["jso"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "cdsobldwnhwvzkxgirnvmgvi", - "tags": ["xz"], + "include_smart_links": False, + "search": "flxwktfjgtj", + "tags": ["iaqrfrdvomtecdnppk"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "gvobxssjatknclxt", - "tags": ["wfzinazhx"], + "include_smart_links": True, + "search": "bcummcznprynfodfwtqt", + "tags": ["nleccjiglzauxnn"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index aa1a19e..afc6856 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="quo", + tracking_link_id="enim", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="quo", + tracking_link_id="enim", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptates", + tracking_link_id="voluptate", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="velit", + tracking_link_id="pariatur", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b3661fd..badf259 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="optio", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="optio", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="non", + trial_link_id="optio", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="non", + trial_link_id="optio", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="non", + trial_link_id="optio", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="similique", + trial_link_id="maxime", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="est", + trial_link_id="aut", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="ipsa", + trial_link_id="voluptatem", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 12f2d79..3403746 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="hbvr", + name="oykguaf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hbvr", + name="oykguaf", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hbvr", + name="oykguaf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="hbvr", + name="oykguaf", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="hbvr", + name="oykguaf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hbvr", + name="oykguaf", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="hbvr", + name="oykguaf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="hbvr", + name="oykguaf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From eb632d41920d0f838135d5f1d66502298b430bcc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 09:12:31 +0000 Subject: [PATCH 42/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_authenticate.py | 44 ++++----- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 40 ++++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 14 files changed, 260 insertions(+), 260 deletions(-) diff --git a/.stats.yml b/.stats.yml index 99bc67b..fc6efd6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-5a86517cb84478db1099c218ff317bf61ec3b1a0e6b5559f18d86724c714c460.yml -openapi_spec_hash: ef07d9eb4d7cb67521c6e7a82cb3cc5e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-12226af0fac38fa09d754de371c332d3bd6e502db824394a83c8814f046b1ad6.yml +openapi_spec_hash: fe932be75d90f80f367107bddaa781e0 config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7506a92..182beed 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="repellat", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="ut", + message_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="ut", + message_id="repellat", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index cd43c0b..d7796c4 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="aut", + list_id="tenetur", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="aut", + list_id="tenetur", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="aut", + list_id="tenetur", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="aut", + list_id="tenetur", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="aut", + list_id="tenetur", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index e1c7372..c8a1277 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="consequuntur", + post_id="saepe", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="consequuntur", + post_id="saepe", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="consequuntur", + post_id="saepe", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="consequuntur", + post_id="saepe", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="consequuntur", + post_id="saepe", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=48, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 9c80483..b5f3d61 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 6304738..f904686 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="nostrum", + path_story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="nostrum", + path_story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="animi", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="nostrum", + story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="nostrum", + story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="animi", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="nostrum", + path_story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="nostrum", + path_story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="nostrum", + path_story_id="animi", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="nostrum", + story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="nostrum", + story_id="animi", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="nostrum", + story_id="animi", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index a2698d1..1e5680e 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="impedit", - auth_type="mobile_app", - cookies="aut", + auth_id="non", + auth_type="email_password", + cookies="quis", custom_proxy={ "host": "proxy.example.com", - "password": "vOy@4$#Z0>'[x", + "password": '"(Z/2F#:', "port": 8080, - "username": "optio", + "username": "at", }, - email="jarrell37@example.org", - force_connect=False, - name="totam", - password="Ut;aK1", + email="ella.paucek@example.com", + force_connect=True, + name="harum", + password="fH/|ta9v", proxy_country="uk", - user_agent="harum", - xbc="eos", + user_agent="esse", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="impedit", - auth_type="mobile_app", - cookies="aut", + auth_id="non", + auth_type="email_password", + cookies="quis", custom_proxy={ "host": "proxy.example.com", - "password": "vOy@4$#Z0>'[x", + "password": '"(Z/2F#:', "port": 8080, - "username": "optio", + "username": "at", }, - email="jarrell37@example.org", - force_connect=False, - name="totam", - password="Ut;aK1", + email="ella.paucek@example.com", + force_connect=True, + name="harum", + password="fH/|ta9v", proxy_country="uk", - user_agent="harum", - xbc="eos", + user_agent="esse", + xbc="qui", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 08eda06..1311fda 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -207,7 +207,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -215,7 +215,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -229,7 +229,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", ) assert response.is_closed is True @@ -241,7 +241,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -263,7 +263,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -271,7 +271,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -287,7 +287,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", ) assert response.is_closed is True @@ -299,7 +299,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -321,7 +321,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="et", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -329,7 +329,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -344,7 +344,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="autem", + smart_link_id="et", ) assert response.is_closed is True @@ -356,7 +356,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="autem", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -378,7 +378,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -386,7 +386,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", limit=50, min_spend=1, offset=0, @@ -397,7 +397,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", ) assert response.is_closed is True @@ -409,7 +409,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -431,7 +431,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", ) assert smart_link is None @@ -439,7 +439,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -450,7 +450,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", ) assert response.is_closed is True @@ -462,7 +462,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -484,7 +484,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -492,7 +492,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -502,7 +502,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", ) assert response.is_closed is True @@ -514,7 +514,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -718,7 +718,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -726,7 +726,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -740,7 +740,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", ) assert response.is_closed is True @@ -752,7 +752,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="voluptate", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -774,7 +774,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -782,7 +782,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -798,7 +798,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", ) assert response.is_closed is True @@ -810,7 +810,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="sequi", + smart_link_id="ea", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -832,7 +832,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="et", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -840,7 +840,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="autem", + smart_link_id="et", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -855,7 +855,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="autem", + smart_link_id="et", ) assert response.is_closed is True @@ -867,7 +867,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="autem", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -889,7 +889,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -897,7 +897,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", limit=50, min_spend=1, offset=0, @@ -908,7 +908,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", ) assert response.is_closed is True @@ -920,7 +920,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="repudiandae", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -942,7 +942,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", ) assert smart_link is None @@ -950,7 +950,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -961,7 +961,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", ) assert response.is_closed is True @@ -973,7 +973,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="rerum", + smart_link_id="eius", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -995,7 +995,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1003,7 +1003,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1013,7 +1013,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", ) assert response.is_closed is True @@ -1025,7 +1025,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="quis", + smart_link_id="magnam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 56454a5..94cbbda 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "rqqtkjnknlfzmfls", - "tags": ["hylpqdvepchoy"], + "search": "attalciexyiempgdnxqs", + "tags": ["ztgswyhtutzvloehmhhdfin"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ykyjxnbqakck", - "tags": ["jso"], + "search": "yikccvyeddsspumvbxomlaebk", + "tags": ["sclvcmlspcinswlcwvzkkg"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "flxwktfjgtj", - "tags": ["iaqrfrdvomtecdnppk"], + "include_smart_links": True, + "search": "cwmchosceczdhjaue", + "tags": ["hagyrehqtravkpphn"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "bcummcznprynfodfwtqt", - "tags": ["nleccjiglzauxnn"], + "include_smart_links": False, + "search": "bhzzvmjdkzdyartd", + "tags": ["srftuxezhsnjgkpodlwfuk"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "rqqtkjnknlfzmfls", - "tags": ["hylpqdvepchoy"], + "search": "attalciexyiempgdnxqs", + "tags": ["ztgswyhtutzvloehmhhdfin"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "ykyjxnbqakck", - "tags": ["jso"], + "search": "yikccvyeddsspumvbxomlaebk", + "tags": ["sclvcmlspcinswlcwvzkkg"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "flxwktfjgtj", - "tags": ["iaqrfrdvomtecdnppk"], + "include_smart_links": True, + "search": "cwmchosceczdhjaue", + "tags": ["hagyrehqtravkpphn"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "bcummcznprynfodfwtqt", - "tags": ["nleccjiglzauxnn"], + "include_smart_links": False, + "search": "bhzzvmjdkzdyartd", + "tags": ["srftuxezhsnjgkpodlwfuk"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index afc6856..60e9ee4 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="enim", + tracking_link_id="et", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="enim", + tracking_link_id="et", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="enim", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="enim", + tracking_link_id="et", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="voluptate", + tracking_link_id="non", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="pariatur", + tracking_link_id="possimus", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index badf259..b2b554c 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="optio", + trial_link_id="voluptas", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="optio", + trial_link_id="voluptas", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="maxime", + trial_link_id="est", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="aut", + trial_link_id="vitae", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatem", + trial_link_id="voluptatum", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 3403746..9da1c5e 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="oykguaf", + name="zkrgzlh", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oykguaf", + name="zkrgzlh", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oykguaf", + name="zkrgzlh", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="oykguaf", + name="zkrgzlh", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="oykguaf", + name="zkrgzlh", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oykguaf", + name="zkrgzlh", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="oykguaf", + name="zkrgzlh", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="oykguaf", + name="zkrgzlh", ) @pytest.mark.skip(reason="Mock server tests are disabled") From a96c6d73c2a5f5dfed976f2ec235b082c2569872 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 10:12:36 +0000 Subject: [PATCH 43/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++---- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/messages/test_settings.py | 16 ++-- .../saved_for_later/posts/test_settings.py | 16 ++-- .../api_resources/stories/test_highlights.py | 32 +++---- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 96 +++++++++---------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 ++-- 16 files changed, 264 insertions(+), 264 deletions(-) diff --git a/.stats.yml b/.stats.yml index fc6efd6..ae9cb11 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-12226af0fac38fa09d754de371c332d3bd6e502db824394a83c8814f046b1ad6.yml -openapi_spec_hash: fe932be75d90f80f367107bddaa781e0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8fc068b0eaa22ed851b43bf6a3504c7aa451ec280d6677e8472a0e1f89b9b9b6.yml +openapi_spec_hash: ae58a89e758acbaa14f71ef912d341cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 182beed..4fa7cf6 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="repellat", + message_id="voluptatibus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index d7796c4..270d890 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="tenetur", + list_id="velit", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="tenetur", + list_id="velit", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="tenetur", + list_id="velit", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="tenetur", + list_id="velit", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="tenetur", + list_id="velit", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index c8a1277..9923a2c 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="saepe", + post_id="incidunt", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="saepe", + post_id="incidunt", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="saepe", + post_id="incidunt", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="saepe", + post_id="incidunt", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="saepe", + post_id="incidunt", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..444937b 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=6, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=6, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=6, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61..2ced6cb 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=12, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=12, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index f904686..122983a 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="animi", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="animi", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="animi", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="animi", + path_story_id="quia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="animi", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="animi", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="animi", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="animi", + story_id="quia", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="animi", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="animi", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="animi", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="animi", + path_story_id="quia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="animi", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="animi", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="animi", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="animi", + story_id="quia", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 0b8f88f..e086553 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "qui", + "rerum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "qui", + "rerum", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "qui", + "rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "qui", + "rerum", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "qui", + "rerum", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "qui", + "rerum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 1e5680e..eb71905 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="non", - auth_type="email_password", - cookies="quis", + auth_id="corporis", + auth_type="mobile_app", + cookies="voluptate", custom_proxy={ "host": "proxy.example.com", - "password": '"(Z/2F#:', + "password": "d(pg'O-@8e=d&1VBQLb|", "port": 8080, - "username": "at", + "username": "nihil", }, - email="ella.paucek@example.com", + email="jadon.gerhold@example.net", force_connect=True, - name="harum", - password="fH/|ta9v", + name="itaque", + password="Ts#g8Uy~)mOP=O#+q+*", proxy_country="uk", - user_agent="esse", - xbc="qui", + user_agent="deleniti", + xbc="vel", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="non", - auth_type="email_password", - cookies="quis", + auth_id="corporis", + auth_type="mobile_app", + cookies="voluptate", custom_proxy={ "host": "proxy.example.com", - "password": '"(Z/2F#:', + "password": "d(pg'O-@8e=d&1VBQLb|", "port": 8080, - "username": "at", + "username": "nihil", }, - email="ella.paucek@example.com", + email="jadon.gerhold@example.net", force_connect=True, - name="harum", - password="fH/|ta9v", + name="itaque", + password="Ts#g8Uy~)mOP=O#+q+*", proxy_country="uk", - user_agent="esse", - xbc="qui", + user_agent="deleniti", + xbc="vel", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 3597ede..9249f38 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="us", + proxy_country="uk", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 1a80b27..583d8ad 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="onlyfans", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="onlyfans", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 1311fda..da7aaa7 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -207,7 +207,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -215,7 +215,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -229,7 +229,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", ) assert response.is_closed is True @@ -241,7 +241,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -263,7 +263,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ea", + smart_link_id="eum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -271,7 +271,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ea", + smart_link_id="eum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -287,7 +287,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ea", + smart_link_id="eum", ) assert response.is_closed is True @@ -299,7 +299,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ea", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -321,7 +321,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -329,7 +329,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -344,7 +344,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="et", + smart_link_id="est", ) assert response.is_closed is True @@ -356,7 +356,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="et", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -378,7 +378,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="est", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -386,7 +386,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="est", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -397,7 +397,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="est", + smart_link_id="et", ) assert response.is_closed is True @@ -409,7 +409,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="est", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -431,7 +431,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", ) assert smart_link is None @@ -439,7 +439,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -450,7 +450,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -462,7 +462,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -484,7 +484,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -492,7 +492,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -502,7 +502,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -514,7 +514,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -718,7 +718,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -726,7 +726,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -740,7 +740,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", ) assert response.is_closed is True @@ -752,7 +752,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="dolor", + smart_link_id="sit", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -774,7 +774,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ea", + smart_link_id="eum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -782,7 +782,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ea", + smart_link_id="eum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -798,7 +798,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ea", + smart_link_id="eum", ) assert response.is_closed is True @@ -810,7 +810,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ea", + smart_link_id="eum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -832,7 +832,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -840,7 +840,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="et", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -855,7 +855,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="et", + smart_link_id="est", ) assert response.is_closed is True @@ -867,7 +867,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="et", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -889,7 +889,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="est", + smart_link_id="et", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -897,7 +897,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="est", + smart_link_id="et", limit=50, min_spend=1, offset=0, @@ -908,7 +908,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="est", + smart_link_id="et", ) assert response.is_closed is True @@ -920,7 +920,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="est", + smart_link_id="et", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -942,7 +942,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", ) assert smart_link is None @@ -950,7 +950,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -961,7 +961,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", ) assert response.is_closed is True @@ -973,7 +973,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="eius", + smart_link_id="voluptates", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -995,7 +995,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1003,7 +1003,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1013,7 +1013,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", ) assert response.is_closed is True @@ -1025,7 +1025,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="magnam", + smart_link_id="blanditiis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 94cbbda..5c4ce84 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "attalciexyiempgdnxqs", - "tags": ["ztgswyhtutzvloehmhhdfin"], + "search": "tqe", + "tags": ["bfpdiimcpjsvivtokaponbdhq"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "yikccvyeddsspumvbxomlaebk", - "tags": ["sclvcmlspcinswlcwvzkkg"], + "search": "t", + "tags": ["ryqjifaogiwzypeqyofr"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "cwmchosceczdhjaue", - "tags": ["hagyrehqtravkpphn"], + "search": "zzdgdlaiz", + "tags": ["xblcciohteznhvi"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "bhzzvmjdkzdyartd", - "tags": ["srftuxezhsnjgkpodlwfuk"], + "include_smart_links": True, + "search": "ypbyuktvramcvguk", + "tags": ["xedtgszcvxvodmir"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "attalciexyiempgdnxqs", - "tags": ["ztgswyhtutzvloehmhhdfin"], + "search": "tqe", + "tags": ["bfpdiimcpjsvivtokaponbdhq"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "yikccvyeddsspumvbxomlaebk", - "tags": ["sclvcmlspcinswlcwvzkkg"], + "search": "t", + "tags": ["ryqjifaogiwzypeqyofr"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "cwmchosceczdhjaue", - "tags": ["hagyrehqtravkpphn"], + "search": "zzdgdlaiz", + "tags": ["xblcciohteznhvi"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": False, - "search": "bhzzvmjdkzdyartd", - "tags": ["srftuxezhsnjgkpodlwfuk"], + "include_smart_links": True, + "search": "ypbyuktvramcvguk", + "tags": ["xedtgszcvxvodmir"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 60e9ee4..a3f3854 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="et", + tracking_link_id="laborum", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="et", + tracking_link_id="laborum", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="non", + tracking_link_id="maxime", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="possimus", + tracking_link_id="maxime", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index b2b554c..59c08da 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptas", + trial_link_id="sint", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="voluptas", + trial_link_id="sint", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="est", + trial_link_id="inventore", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="vitae", + trial_link_id="praesentium", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="voluptatum", + trial_link_id="facere", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 9da1c5e..be5e0ad 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zkrgzlh", + name="dxevkwjtngovx", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zkrgzlh", + name="dxevkwjtngovx", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zkrgzlh", + name="dxevkwjtngovx", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="zkrgzlh", + name="dxevkwjtngovx", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="zkrgzlh", + name="dxevkwjtngovx", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zkrgzlh", + name="dxevkwjtngovx", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="zkrgzlh", + name="dxevkwjtngovx", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="zkrgzlh", + name="dxevkwjtngovx", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 06c6eefd0f8f8cb4ee28d7977dd27e594f14c155 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:12:38 +0000 Subject: [PATCH 44/48] feat(api): api update --- .stats.yml | 4 +- src/onlyfansapi/_client.py | 12 +-- src/onlyfansapi/resources/link_tags.py | 20 ++-- src/onlyfansapi/resources/smart_links.py | 4 + src/onlyfansapi/types/link_tag_list_params.py | 4 +- .../types/smart_link_list_params.py | 11 ++- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- tests/api_resources/posts/test_comments.py | 40 ++++---- .../saved_for_later/posts/test_settings.py | 16 +-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++--- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 40 ++++---- tests/api_resources/test_smart_links.py | 98 ++++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 72 +++++++------- tests/api_resources/test_trial_links.py | 88 ++++++++--------- tests/api_resources/test_user_lists.py | 16 +-- 19 files changed, 286 insertions(+), 271 deletions(-) diff --git a/.stats.yml b/.stats.yml index ae9cb11..4e60eca 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-8fc068b0eaa22ed851b43bf6a3504c7aa451ec280d6677e8472a0e1f89b9b9b6.yml -openapi_spec_hash: ae58a89e758acbaa14f71ef912d341cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7208a292a7e06ff0b1104c21c970fabf73cc1adfa4bc33816ab7e4a5553e6267.yml +openapi_spec_hash: 4f652aa77155c360d33db12fc0e9e9cf config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/src/onlyfansapi/_client.py b/src/onlyfansapi/_client.py index 4fd6cdf..21e7cff 100644 --- a/src/onlyfansapi/_client.py +++ b/src/onlyfansapi/_client.py @@ -311,7 +311,7 @@ def giphy(self) -> GiphyResource: @cached_property def link_tags(self) -> LinkTagsResource: - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" from .resources.link_tags import LinkTagsResource return LinkTagsResource(self) @@ -779,7 +779,7 @@ def giphy(self) -> AsyncGiphyResource: @cached_property def link_tags(self) -> AsyncLinkTagsResource: - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" from .resources.link_tags import AsyncLinkTagsResource return AsyncLinkTagsResource(self) @@ -1189,7 +1189,7 @@ def giphy(self) -> giphy.GiphyResourceWithRawResponse: @cached_property def link_tags(self) -> link_tags.LinkTagsResourceWithRawResponse: - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" from .resources.link_tags import LinkTagsResourceWithRawResponse return LinkTagsResourceWithRawResponse(self._client.link_tags) @@ -1482,7 +1482,7 @@ def giphy(self) -> giphy.AsyncGiphyResourceWithRawResponse: @cached_property def link_tags(self) -> link_tags.AsyncLinkTagsResourceWithRawResponse: - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" from .resources.link_tags import AsyncLinkTagsResourceWithRawResponse return AsyncLinkTagsResourceWithRawResponse(self._client.link_tags) @@ -1775,7 +1775,7 @@ def giphy(self) -> giphy.GiphyResourceWithStreamingResponse: @cached_property def link_tags(self) -> link_tags.LinkTagsResourceWithStreamingResponse: - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" from .resources.link_tags import LinkTagsResourceWithStreamingResponse return LinkTagsResourceWithStreamingResponse(self._client.link_tags) @@ -2068,7 +2068,7 @@ def giphy(self) -> giphy.AsyncGiphyResourceWithStreamingResponse: @cached_property def link_tags(self) -> link_tags.AsyncLinkTagsResourceWithStreamingResponse: - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" from .resources.link_tags import AsyncLinkTagsResourceWithStreamingResponse return AsyncLinkTagsResourceWithStreamingResponse(self._client.link_tags) diff --git a/src/onlyfansapi/resources/link_tags.py b/src/onlyfansapi/resources/link_tags.py index 75f22c8..46d57c1 100644 --- a/src/onlyfansapi/resources/link_tags.py +++ b/src/onlyfansapi/resources/link_tags.py @@ -24,7 +24,7 @@ class LinkTagsResource(SyncAPIResource): - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" @cached_property def with_raw_response(self) -> LinkTagsResourceWithRawResponse: @@ -48,7 +48,7 @@ def with_streaming_response(self) -> LinkTagsResourceWithStreamingResponse: def list( self, *, - type: Literal["trial_links", "tracking_links"] | Omit = omit, + type: Literal["trial_links", "tracking_links", "smart_links"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -57,11 +57,11 @@ def list( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> LinkTagListResponse: """ - Get all existing tags that have been used on free trial links and/or tracking - links for this account. This is a free endpoint. + Get all existing tags that have been used on free trial links, tracking links, + and/or Smart Links for this account. This is a free endpoint. Args: - type: Filter by link type. If not provided, returns tags for both types. + type: Filter by link type. If not provided, returns tags for all types. extra_headers: Send extra headers @@ -85,7 +85,7 @@ def list( class AsyncLinkTagsResource(AsyncAPIResource): - """APIs for managing tags on free trial links and tracking links""" + """APIs for managing tags on free trial links, tracking links, and Smart Links""" @cached_property def with_raw_response(self) -> AsyncLinkTagsResourceWithRawResponse: @@ -109,7 +109,7 @@ def with_streaming_response(self) -> AsyncLinkTagsResourceWithStreamingResponse: async def list( self, *, - type: Literal["trial_links", "tracking_links"] | Omit = omit, + type: Literal["trial_links", "tracking_links", "smart_links"] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -118,11 +118,11 @@ async def list( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> LinkTagListResponse: """ - Get all existing tags that have been used on free trial links and/or tracking - links for this account. This is a free endpoint. + Get all existing tags that have been used on free trial links, tracking links, + and/or Smart Links for this account. This is a free endpoint. Args: - type: Filter by link type. If not provided, returns tags for both types. + type: Filter by link type. If not provided, returns tags for all types. extra_headers: Send extra headers diff --git a/src/onlyfansapi/resources/smart_links.py b/src/onlyfansapi/resources/smart_links.py index 5788f20..0c02239 100644 --- a/src/onlyfansapi/resources/smart_links.py +++ b/src/onlyfansapi/resources/smart_links.py @@ -156,6 +156,7 @@ def list( self, *, account_ids: Optional[str] | Omit = omit, + filter: smart_link_list_params.Filter | Omit = omit, limit: int | Omit = omit, meta_pixel_ids: Optional[str] | Omit = omit, name: Optional[str] | Omit = omit, @@ -203,6 +204,7 @@ def list( query=maybe_transform( { "account_ids": account_ids, + "filter": filter, "limit": limit, "meta_pixel_ids": meta_pixel_ids, "name": name, @@ -741,6 +743,7 @@ async def list( self, *, account_ids: Optional[str] | Omit = omit, + filter: smart_link_list_params.Filter | Omit = omit, limit: int | Omit = omit, meta_pixel_ids: Optional[str] | Omit = omit, name: Optional[str] | Omit = omit, @@ -788,6 +791,7 @@ async def list( query=await async_maybe_transform( { "account_ids": account_ids, + "filter": filter, "limit": limit, "meta_pixel_ids": meta_pixel_ids, "name": name, diff --git a/src/onlyfansapi/types/link_tag_list_params.py b/src/onlyfansapi/types/link_tag_list_params.py index 5e15ebb..32f0609 100644 --- a/src/onlyfansapi/types/link_tag_list_params.py +++ b/src/onlyfansapi/types/link_tag_list_params.py @@ -8,5 +8,5 @@ class LinkTagListParams(TypedDict, total=False): - type: Literal["trial_links", "tracking_links"] - """Filter by link type. If not provided, returns tags for both types.""" + type: Literal["trial_links", "tracking_links", "smart_links"] + """Filter by link type. If not provided, returns tags for all types.""" diff --git a/src/onlyfansapi/types/smart_link_list_params.py b/src/onlyfansapi/types/smart_link_list_params.py index 0cafb95..ed433ed 100644 --- a/src/onlyfansapi/types/smart_link_list_params.py +++ b/src/onlyfansapi/types/smart_link_list_params.py @@ -5,13 +5,17 @@ from typing import Optional from typing_extensions import TypedDict -__all__ = ["SmartLinkListParams"] +from .._types import SequenceNotStr + +__all__ = ["SmartLinkListParams", "Filter"] class SmartLinkListParams(TypedDict, total=False): account_ids: Optional[str] """Comma-separated account prefixed IDs to include.""" + filter: Filter + limit: int """The number of Smart Links to return. @@ -29,3 +33,8 @@ class SmartLinkListParams(TypedDict, total=False): pixel_ids: Optional[str] """Comma-separated ad platform Pixel IDs to include.""" + + +class Filter(TypedDict, total=False): + tags: SequenceNotStr[str] + """Must not be greater than 50 characters.""" diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4fa7cf6..b48c5fe 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="voluptatibus", + message_id="necessitatibus", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 270d890..aa05a92 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="velit", + list_id="atque", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="velit", + list_id="atque", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="velit", + list_id="atque", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="velit", + list_id="atque", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="velit", + list_id="atque", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 9923a2c..0d70ffc 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="incidunt", + post_id="aut", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="incidunt", + post_id="aut", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="incidunt", + post_id="aut", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="incidunt", + post_id="aut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="incidunt", + post_id="aut", account="", ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index 2ced6cb..b5f3d61 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=24, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=12, + period=24, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 544df88..9664075 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=True, + is_forward=False, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 122983a..44e9daf 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="quia", + path_story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="quia", + path_story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="unde", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="quia", + story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="quia", + story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="unde", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="quia", + path_story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="quia", + path_story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="unde", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="quia", + story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="quia", + story_id="unde", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="unde", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index e086553..66a8a94 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "rerum", + "eos", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "rerum", + "eos", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "rerum", + "eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "rerum", + "eos", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "rerum", + "eos", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "rerum", + "eos", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index eb71905..77758d3 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="corporis", - auth_type="mobile_app", - cookies="voluptate", + auth_id="cumque", + auth_type="email_password", + cookies="dicta", custom_proxy={ "host": "proxy.example.com", - "password": "d(pg'O-@8e=d&1VBQLb|", + "password": "x('$wr=CbmH*4[f4&g", "port": 8080, - "username": "nihil", + "username": "necessitatibus", }, - email="jadon.gerhold@example.net", + email="maggio.rafael@example.org", force_connect=True, - name="itaque", - password="Ts#g8Uy~)mOP=O#+q+*", + name="quis", + password="<8e\\;|ZDP*7ts", proxy_country="uk", - user_agent="deleniti", - xbc="vel", + user_agent="fugiat", + xbc="cum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="corporis", - auth_type="mobile_app", - cookies="voluptate", + auth_id="cumque", + auth_type="email_password", + cookies="dicta", custom_proxy={ "host": "proxy.example.com", - "password": "d(pg'O-@8e=d&1VBQLb|", + "password": "x('$wr=CbmH*4[f4&g", "port": 8080, - "username": "nihil", + "username": "necessitatibus", }, - email="jadon.gerhold@example.net", + email="maggio.rafael@example.org", force_connect=True, - name="itaque", - password="Ts#g8Uy~)mOP=O#+q+*", + name="quis", + password="<8e\\;|ZDP*7ts", proxy_country="uk", - user_agent="deleniti", - xbc="vel", + user_agent="fugiat", + xbc="cum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index da7aaa7..07538f0 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -131,6 +131,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list( account_ids="acct_abc123,acct_def456", + filter={"tags": ["dvn"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -207,7 +208,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -215,7 +216,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -229,7 +230,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", ) assert response.is_closed is True @@ -241,7 +242,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -263,7 +264,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="eum", + smart_link_id="unde", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -271,7 +272,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="eum", + smart_link_id="unde", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -287,7 +288,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="eum", + smart_link_id="unde", ) assert response.is_closed is True @@ -299,7 +300,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="eum", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -321,7 +322,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="quis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -329,7 +330,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="quis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -344,7 +345,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="est", + smart_link_id="quis", ) assert response.is_closed is True @@ -356,7 +357,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="est", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -378,7 +379,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="quo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -386,7 +387,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="quo", limit=50, min_spend=1, offset=0, @@ -397,7 +398,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="et", + smart_link_id="quo", ) assert response.is_closed is True @@ -409,7 +410,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="et", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -431,7 +432,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", ) assert smart_link is None @@ -439,7 +440,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -450,7 +451,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", ) assert response.is_closed is True @@ -462,7 +463,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -484,7 +485,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -492,7 +493,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -502,7 +503,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", ) assert response.is_closed is True @@ -514,7 +515,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -642,6 +643,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list( account_ids="acct_abc123,acct_def456", + filter={"tags": ["dvn"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -718,7 +720,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -726,7 +728,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -740,7 +742,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", ) assert response.is_closed is True @@ -752,7 +754,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="sit", + smart_link_id="dolor", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -774,7 +776,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="eum", + smart_link_id="unde", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -782,7 +784,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="eum", + smart_link_id="unde", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -798,7 +800,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="eum", + smart_link_id="unde", ) assert response.is_closed is True @@ -810,7 +812,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="eum", + smart_link_id="unde", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -832,7 +834,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="quis", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -840,7 +842,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="quis", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -855,7 +857,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="est", + smart_link_id="quis", ) assert response.is_closed is True @@ -867,7 +869,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="est", + smart_link_id="quis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -889,7 +891,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="quo", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -897,7 +899,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="et", + smart_link_id="quo", limit=50, min_spend=1, offset=0, @@ -908,7 +910,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="et", + smart_link_id="quo", ) assert response.is_closed is True @@ -920,7 +922,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="et", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -942,7 +944,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", ) assert smart_link is None @@ -950,7 +952,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -961,7 +963,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", ) assert response.is_closed is True @@ -973,7 +975,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="voluptates", + smart_link_id="tenetur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -995,7 +997,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1003,7 +1005,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1013,7 +1015,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", ) assert response.is_closed is True @@ -1025,7 +1027,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="blanditiis", + smart_link_id="amet", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 5c4ce84..b423ad4 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tqe", - "tags": ["bfpdiimcpjsvivtokaponbdhq"], + "search": "xqbpeywbnqzrot", + "tags": ["lfxdosngduiebunbimoa"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "t", - "tags": ["ryqjifaogiwzypeqyofr"], + "search": "rqlins", + "tags": ["tkfprulkxtdvfxv"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "zzdgdlaiz", - "tags": ["xblcciohteznhvi"], + "search": "vfoonzamgezijosgdi", + "tags": ["izvekcrinduhpt"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ypbyuktvramcvguk", - "tags": ["xedtgszcvxvodmir"], + "search": "umawdvjudoyzzsptmkjdhjp", + "tags": ["m"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tqe", - "tags": ["bfpdiimcpjsvivtokaponbdhq"], + "search": "xqbpeywbnqzrot", + "tags": ["lfxdosngduiebunbimoa"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "t", - "tags": ["ryqjifaogiwzypeqyofr"], + "search": "rqlins", + "tags": ["tkfprulkxtdvfxv"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "zzdgdlaiz", - "tags": ["xblcciohteznhvi"], + "search": "vfoonzamgezijosgdi", + "tags": ["izvekcrinduhpt"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ypbyuktvramcvguk", - "tags": ["xedtgszcvxvodmir"], + "search": "umawdvjudoyzzsptmkjdhjp", + "tags": ["m"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index a3f3854..ac47089 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="laborum", + tracking_link_id="perferendis", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="maxime", + tracking_link_id="iusto", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="maxime", + tracking_link_id="et", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 59c08da..eb5d11c 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="sint", + trial_link_id="voluptatem", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="sint", + trial_link_id="voluptatem", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="inventore", + trial_link_id="molestiae", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="praesentium", + trial_link_id="sapiente", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="facere", + trial_link_id="consectetur", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index be5e0ad..0c47f8e 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="dxevkwjtngovx", + name="om", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dxevkwjtngovx", + name="om", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dxevkwjtngovx", + name="om", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="dxevkwjtngovx", + name="om", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="dxevkwjtngovx", + name="om", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dxevkwjtngovx", + name="om", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="dxevkwjtngovx", + name="om", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="dxevkwjtngovx", + name="om", ) @pytest.mark.skip(reason="Mock server tests are disabled") From bbaa89714c89ec78261079236b42f2d5d1ddb930 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:12:36 +0000 Subject: [PATCH 45/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- tests/api_resources/posts/test_comments.py | 40 +++---- .../saved_for_later/messages/test_settings.py | 16 +-- .../saved_for_later/posts/test_settings.py | 16 +-- .../api_resources/stories/test_highlights.py | 32 +++--- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++---- tests/api_resources/test_client_sessions.py | 4 +- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 17 files changed, 270 insertions(+), 270 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4e60eca..5930ed9 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-7208a292a7e06ff0b1104c21c970fabf73cc1adfa4bc33816ab7e4a5553e6267.yml -openapi_spec_hash: 4f652aa77155c360d33db12fc0e9e9cf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-98e4e47da7e64769b6554eea85263c51042b47fd498b081e3db4dd1d84082355.yml +openapi_spec_hash: 28324b15d88b3d82e1a3ea0a0f03a02a config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index b48c5fe..7b20990 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="necessitatibus", + message_id="quis", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index aa05a92..370ff89 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="atque", + list_id="molestiae", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="atque", + list_id="molestiae", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="atque", + list_id="molestiae", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="atque", + list_id="molestiae", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="atque", + list_id="molestiae", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index 0d70ffc..f59fb34 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="aut", + post_id="adipisci", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="aut", + post_id="adipisci", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="aut", + post_id="adipisci", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="aut", + post_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="aut", + post_id="adipisci", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 444937b..7549791 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=12, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=6, + period=12, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=6, + period=12, ) diff --git a/tests/api_resources/saved_for_later/posts/test_settings.py b/tests/api_resources/saved_for_later/posts/test_settings.py index b5f3d61..9c80483 100644 --- a/tests/api_resources/saved_for_later/posts/test_settings.py +++ b/tests/api_resources/saved_for_later/posts/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_posting(self, client: OnlyFansAPI) -> Non def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_posting(self, client: OnlyFansA def test_streaming_response_enable_or_update_automatic_posting(self, client: OnlyFansAPI) -> None: with client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_posting(self, client: OnlyFansAP with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_posting(self, async_client: AsyncOn async def test_method_enable_or_update_automatic_posting(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.posts.settings.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticPostingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_posting(self, async_clien response = ( await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) ) @@ -271,7 +271,7 @@ async def test_streaming_response_enable_or_update_automatic_posting(self, async async with ( async_client.saved_for_later.posts.settings.with_streaming_response.enable_or_update_automatic_posting( account="acct_XXXXXXXXXXXXXXX", - period=24, + period=48, ) ) as response: assert not response.is_closed @@ -288,5 +288,5 @@ async def test_path_params_enable_or_update_automatic_posting(self, async_client with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.posts.settings.with_raw_response.enable_or_update_automatic_posting( account="", - period=24, + period=48, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 44e9daf..886b273 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="unde", + path_story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="unde", + path_story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="unde", + path_story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="unde", + path_story_id="est", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="unde", + story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="unde", + story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="unde", + story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="unde", + story_id="est", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="unde", + path_story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="unde", + path_story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="unde", + path_story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="unde", + path_story_id="est", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="unde", + story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="unde", + story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="unde", + story_id="est", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="unde", + story_id="est", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 66a8a94..320a26e 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "eos", + "dolores", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "eos", + "dolores", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "eos", + "dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "eos", + "dolores", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "eos", + "dolores", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "eos", + "dolores", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 77758d3..30a3b3a 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="cumque", - auth_type="email_password", - cookies="dicta", + auth_id="nobis", + auth_type="raw_data", + cookies="reiciendis", custom_proxy={ "host": "proxy.example.com", - "password": "x('$wr=CbmH*4[f4&g", + "password": "G*thdB,m$F-f", "port": 8080, - "username": "necessitatibus", + "username": "rem", }, - email="maggio.rafael@example.org", - force_connect=True, - name="quis", - password="<8e\\;|ZDP*7ts", + email="hackett.alphonso@example.net", + force_connect=False, + name="quidem", + password="q7TDu.1jo0N6;", proxy_country="uk", - user_agent="fugiat", - xbc="cum", + user_agent="ex", + xbc="illum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="cumque", - auth_type="email_password", - cookies="dicta", + auth_id="nobis", + auth_type="raw_data", + cookies="reiciendis", custom_proxy={ "host": "proxy.example.com", - "password": "x('$wr=CbmH*4[f4&g", + "password": "G*thdB,m$F-f", "port": 8080, - "username": "necessitatibus", + "username": "rem", }, - email="maggio.rafael@example.org", - force_connect=True, - name="quis", - password="<8e\\;|ZDP*7ts", + email="hackett.alphonso@example.net", + force_connect=False, + name="quidem", + password="q7TDu.1jo0N6;", proxy_country="uk", - user_agent="fugiat", - xbc="cum", + user_agent="ex", + xbc="illum", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_client_sessions.py b/tests/api_resources/test_client_sessions.py index 9249f38..3597ede 100644 --- a/tests/api_resources/test_client_sessions.py +++ b/tests/api_resources/test_client_sessions.py @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: client_session = client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) @@ -81,7 +81,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP client_session = await async_client.client_sessions.create( display_name="STRLCxGLVC Agency / Model: Stella", client_reference_id="my_crm_model_12345", - proxy_country="uk", + proxy_country="us", ) assert_matches_type(ClientSessionCreateResponse, client_session, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 583d8ad..4fb0fa4 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="all", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="all", + type="subscriptions", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index bd4f616..65694e2 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=False, + fresh=True, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 07538f0..7b91064 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -131,7 +131,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list( account_ids="acct_abc123,acct_def456", - filter={"tags": ["dvn"]}, + filter={"tags": ["llbkcmzaxeolzcwd"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -208,7 +208,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -216,7 +216,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -230,7 +230,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", ) assert response.is_closed is True @@ -242,7 +242,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -264,7 +264,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -272,7 +272,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -288,7 +288,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", ) assert response.is_closed is True @@ -300,7 +300,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -322,7 +322,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -330,7 +330,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -345,7 +345,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="quis", + smart_link_id="est", ) assert response.is_closed is True @@ -357,7 +357,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="quis", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -379,7 +379,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -387,7 +387,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", limit=50, min_spend=1, offset=0, @@ -398,7 +398,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -410,7 +410,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -432,7 +432,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", ) assert smart_link is None @@ -440,7 +440,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -451,7 +451,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -463,7 +463,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -485,7 +485,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -493,7 +493,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -503,7 +503,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -515,7 +515,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -643,7 +643,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list( account_ids="acct_abc123,acct_def456", - filter={"tags": ["dvn"]}, + filter={"tags": ["llbkcmzaxeolzcwd"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -720,7 +720,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -728,7 +728,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -742,7 +742,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", ) assert response.is_closed is True @@ -754,7 +754,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="dolor", + smart_link_id="placeat", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -776,7 +776,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -784,7 +784,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -800,7 +800,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", ) assert response.is_closed is True @@ -812,7 +812,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="unde", + smart_link_id="laborum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -834,7 +834,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="est", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -842,7 +842,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="quis", + smart_link_id="est", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -857,7 +857,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="quis", + smart_link_id="est", ) assert response.is_closed is True @@ -869,7 +869,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="quis", + smart_link_id="est", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -891,7 +891,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -899,7 +899,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", limit=50, min_spend=1, offset=0, @@ -910,7 +910,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", ) assert response.is_closed is True @@ -922,7 +922,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quo", + smart_link_id="quisquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -944,7 +944,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", ) assert smart_link is None @@ -952,7 +952,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -963,7 +963,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -975,7 +975,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="tenetur", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -997,7 +997,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1005,7 +1005,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1015,7 +1015,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", ) assert response.is_closed is True @@ -1027,7 +1027,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="amet", + smart_link_id="voluptatum", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index b423ad4..d2e305c 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "xqbpeywbnqzrot", - "tags": ["lfxdosngduiebunbimoa"], + "search": "tgosrbj", + "tags": ["tgvhvhakvmebvcgoqbccejro"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "rqlins", - "tags": ["tkfprulkxtdvfxv"], + "search": "uk", + "tags": ["cmgfkircewewpxhatzrcnystq"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "vfoonzamgezijosgdi", - "tags": ["izvekcrinduhpt"], + "search": "ljkagjuegego", + "tags": ["hs"], }, limit=10, offset=0, @@ -205,9 +205,9 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N stored = client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "umawdvjudoyzzsptmkjdhjp", - "tags": ["m"], + "include_smart_links": False, + "search": "i", + "tags": ["dndyehdh"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "xqbpeywbnqzrot", - "tags": ["lfxdosngduiebunbimoa"], + "search": "tgosrbj", + "tags": ["tgvhvhakvmebvcgoqbccejro"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "rqlins", - "tags": ["tkfprulkxtdvfxv"], + "search": "uk", + "tags": ["cmgfkircewewpxhatzrcnystq"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "vfoonzamgezijosgdi", - "tags": ["izvekcrinduhpt"], + "search": "ljkagjuegego", + "tags": ["hs"], }, limit=10, offset=0, @@ -437,9 +437,9 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async stored = await async_client.stored.list_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "umawdvjudoyzzsptmkjdhjp", - "tags": ["m"], + "include_smart_links": False, + "search": "i", + "tags": ["dndyehdh"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index ac47089..bebd9a5 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="perferendis", + tracking_link_id="omnis", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="iusto", + tracking_link_id="esse", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="et", + tracking_link_id="alias", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index eb5d11c..7b6617e 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="voluptatem", + trial_link_id="dolorem", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="molestiae", + trial_link_id="iste", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="sapiente", + trial_link_id="fuga", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="consectetur", + trial_link_id="est", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 0c47f8e..f6daf2a 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="om", + name="yonlwqrjuftfvp", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="om", + name="yonlwqrjuftfvp", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="om", + name="yonlwqrjuftfvp", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="om", + name="yonlwqrjuftfvp", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="om", + name="yonlwqrjuftfvp", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="om", + name="yonlwqrjuftfvp", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="om", + name="yonlwqrjuftfvp", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="om", + name="yonlwqrjuftfvp", ) @pytest.mark.skip(reason="Mock server tests are disabled") From afd3835d291685dc853fb3d65912f56dc623c485 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 16:12:37 +0000 Subject: [PATCH 46/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- tests/api_resources/posts/test_comments.py | 40 +++---- .../saved_for_later/messages/test_settings.py | 16 +-- .../settings/test_welcome_message.py | 4 +- .../api_resources/stories/test_highlights.py | 32 +++--- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 32 +++--- tests/api_resources/test_tracking_links.py | 72 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 15 files changed, 258 insertions(+), 258 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5930ed9..c0182bd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-98e4e47da7e64769b6554eea85263c51042b47fd498b081e3db4dd1d84082355.yml -openapi_spec_hash: 28324b15d88b3d82e1a3ea0a0f03a02a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd98dfd5eb9c197536b1a50c0f7f20c7a946ab0b1391ecbd99370981c8d3caa6.yml +openapi_spec_hash: bc927ca065b20e14d6381988600c8afc config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 7b20990..4820aa1 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quis", + message_id="id", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="quis", + message_id="id", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="quis", + message_id="id", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index 370ff89..c1bc309 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="est", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="est", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="molestiae", + list_id="est", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="molestiae", + list_id="est", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="molestiae", + list_id="est", account="", media_ids=["string"], ) diff --git a/tests/api_resources/posts/test_comments.py b/tests/api_resources/posts/test_comments.py index f59fb34..f374e50 100644 --- a/tests/api_resources/posts/test_comments.py +++ b/tests/api_resources/posts/test_comments.py @@ -29,7 +29,7 @@ class TestComments: @parametrize def test_method_create(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -39,7 +39,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -51,7 +51,7 @@ def test_method_create_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: OnlyFansAPI) -> None: def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.create( - post_id="adipisci", + post_id="et", account="", text="This is a comment.", ) @@ -98,7 +98,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -107,7 +107,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: comment = client.posts.comments.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -119,7 +119,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list(self, client: OnlyFansAPI) -> None: response = client.posts.comments.with_raw_response.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -132,7 +132,7 @@ def test_raw_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list(self, client: OnlyFansAPI) -> None: with client.posts.comments.with_streaming_response.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -148,7 +148,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: def test_path_params_list(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.posts.comments.with_raw_response.list( - post_id="adipisci", + post_id="et", account="", ) @@ -418,7 +418,7 @@ class TestAsyncComments: @parametrize async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -428,7 +428,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", answer_to=123, @@ -440,7 +440,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncOnlyFansAP @parametrize async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) @@ -454,7 +454,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.create( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", text="This is a comment.", ) as response: @@ -471,7 +471,7 @@ async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.create( - post_id="adipisci", + post_id="et", account="", text="This is a comment.", ) @@ -487,7 +487,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(CommentListResponse, comment, path=["response"]) @@ -496,7 +496,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: comment = await async_client.posts.comments.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -508,7 +508,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.posts.comments.with_raw_response.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", ) @@ -521,7 +521,7 @@ async def test_raw_response_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.posts.comments.with_streaming_response.list( - post_id="adipisci", + post_id="et", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -537,7 +537,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.posts.comments.with_raw_response.list( - post_id="adipisci", + post_id="et", account="", ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index 7549791..aa735c9 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=48, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=12, + period=48, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=12, + period=48, ) diff --git a/tests/api_resources/settings/test_welcome_message.py b/tests/api_resources/settings/test_welcome_message.py index 9664075..544df88 100644 --- a/tests/api_resources/settings/test_welcome_message.py +++ b/tests/api_resources/settings/test_welcome_message.py @@ -76,7 +76,7 @@ def test_method_update(self, client: OnlyFansAPI) -> None: def test_method_update_with_all_params(self, client: OnlyFansAPI) -> None: welcome_message = client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], @@ -229,7 +229,7 @@ async def test_method_update(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_update_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: welcome_message = await async_client.settings.welcome_message.update( account="acct_XXXXXXXXXXXXXXX", - is_forward=False, + is_forward=True, locked_text=False, media_files=["ofapi_media_abc123", 1234567890], previews=["ofapi_media_abc123", 1234567890], diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 886b273..122983a 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="est", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="est", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="est", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="est", + path_story_id="quia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="est", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="est", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="est", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="est", + story_id="quia", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="est", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="est", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="est", + path_story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="est", + path_story_id="quia", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="est", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="est", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="est", + story_id="quia", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="est", + story_id="quia", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index 320a26e..dc66d57 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "dolores", + "cumque", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "dolores", + "cumque", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "dolores", + "cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "dolores", + "cumque", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "dolores", + "cumque", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "dolores", + "cumque", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 30a3b3a..30446e0 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="nobis", - auth_type="raw_data", - cookies="reiciendis", + auth_id="saepe", + auth_type="mobile_app", + cookies="nam", custom_proxy={ "host": "proxy.example.com", - "password": "G*thdB,m$F-f", + "password": "0F7'FG,@", "port": 8080, - "username": "rem", + "username": "quia", }, - email="hackett.alphonso@example.net", - force_connect=False, - name="quidem", - password="q7TDu.1jo0N6;", + email="may76@example.org", + force_connect=True, + name="laboriosam", + password="O`hSV!4]?3d,j", proxy_country="uk", - user_agent="ex", - xbc="illum", + user_agent="quos", + xbc="consequatur", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="nobis", - auth_type="raw_data", - cookies="reiciendis", + auth_id="saepe", + auth_type="mobile_app", + cookies="nam", custom_proxy={ "host": "proxy.example.com", - "password": "G*thdB,m$F-f", + "password": "0F7'FG,@", "port": 8080, - "username": "rem", + "username": "quia", }, - email="hackett.alphonso@example.net", - force_connect=False, - name="quidem", - password="q7TDu.1jo0N6;", + email="may76@example.org", + force_connect=True, + name="laboriosam", + password="O`hSV!4]?3d,j", proxy_country="uk", - user_agent="ex", - xbc="illum", + user_agent="quos", + xbc="consequatur", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 4fb0fa4..583d8ad 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="subscriptions", + type="all", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 7b91064..4a57e52 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -131,7 +131,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list( account_ids="acct_abc123,acct_def456", - filter={"tags": ["llbkcmzaxeolzcwd"]}, + filter={"tags": ["cnluwurcl"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -208,7 +208,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -216,7 +216,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -230,7 +230,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -242,7 +242,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -264,7 +264,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -272,7 +272,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -288,7 +288,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", ) assert response.is_closed is True @@ -300,7 +300,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -322,7 +322,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -330,7 +330,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -345,7 +345,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="est", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -357,7 +357,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="est", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -379,7 +379,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -387,7 +387,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", limit=50, min_spend=1, offset=0, @@ -398,7 +398,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", ) assert response.is_closed is True @@ -410,7 +410,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -432,7 +432,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", ) assert smart_link is None @@ -440,7 +440,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -451,7 +451,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", ) assert response.is_closed is True @@ -463,7 +463,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -485,7 +485,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -493,7 +493,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -503,7 +503,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", ) assert response.is_closed is True @@ -515,7 +515,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -643,7 +643,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list( account_ids="acct_abc123,acct_def456", - filter={"tags": ["llbkcmzaxeolzcwd"]}, + filter={"tags": ["cnluwurcl"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -720,7 +720,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -728,7 +728,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -742,7 +742,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", ) assert response.is_closed is True @@ -754,7 +754,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="placeat", + smart_link_id="aliquam", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -776,7 +776,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -784,7 +784,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -800,7 +800,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", ) assert response.is_closed is True @@ -812,7 +812,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="laborum", + smart_link_id="ut", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -834,7 +834,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="consequatur", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -842,7 +842,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="est", + smart_link_id="consequatur", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -857,7 +857,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="est", + smart_link_id="consequatur", ) assert response.is_closed is True @@ -869,7 +869,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="est", + smart_link_id="consequatur", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -891,7 +891,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -899,7 +899,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", limit=50, min_spend=1, offset=0, @@ -910,7 +910,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", ) assert response.is_closed is True @@ -922,7 +922,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="quisquam", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -944,7 +944,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", ) assert smart_link is None @@ -952,7 +952,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -963,7 +963,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", ) assert response.is_closed is True @@ -975,7 +975,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="consequatur", + smart_link_id="non", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -997,7 +997,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1005,7 +1005,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1015,7 +1015,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", ) assert response.is_closed is True @@ -1027,7 +1027,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="voluptatum", + smart_link_id="facilis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index d2e305c..79b8175 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tgosrbj", - "tags": ["tgvhvhakvmebvcgoqbccejro"], + "search": "f", + "tags": ["mo"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uk", - "tags": ["cmgfkircewewpxhatzrcnystq"], + "search": "p", + "tags": ["urjmkyjkzwngdrx"], }, limit=10, offset=0, @@ -149,8 +149,8 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ljkagjuegego", - "tags": ["hs"], + "search": "mhvucwarcgrvdzpgltagvkbfg", + "tags": ["leocwjnteqpuui"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "i", - "tags": ["dndyehdh"], + "search": "gqhc", + "tags": ["mhkrqevfeorawkc"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "tgosrbj", - "tags": ["tgvhvhakvmebvcgoqbccejro"], + "search": "f", + "tags": ["mo"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "uk", - "tags": ["cmgfkircewewpxhatzrcnystq"], + "search": "p", + "tags": ["urjmkyjkzwngdrx"], }, limit=10, offset=0, @@ -381,8 +381,8 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": True, - "search": "ljkagjuegego", - "tags": ["hs"], + "search": "mhvucwarcgrvdzpgltagvkbfg", + "tags": ["leocwjnteqpuui"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "i", - "tags": ["dndyehdh"], + "search": "gqhc", + "tags": ["mhkrqevfeorawkc"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index bebd9a5..61d272c 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="omnis", + tracking_link_id="qui", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="omnis", + tracking_link_id="qui", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="esse", + tracking_link_id="laudantium", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="alias", + tracking_link_id="quia", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index 7b6617e..fb3c401 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="dolorem", + trial_link_id="repellat", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="dolorem", + trial_link_id="repellat", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="iste", + trial_link_id="labore", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="fuga", + trial_link_id="voluptatum", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="est", + trial_link_id="veniam", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index f6daf2a..50c3b33 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="yonlwqrjuftfvp", + name="fjlvbeydblzfbmpqkaxhxzf", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 56d3af65bb3977a2fe5e4ba229cff154cd5fd3b6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 20:12:36 +0000 Subject: [PATCH 47/48] feat(api): api update --- .stats.yml | 4 +- .../api_resources/engagement/test_messages.py | 20 ++-- .../media/vault/lists/test_media.py | 32 +++--- .../saved_for_later/messages/test_settings.py | 16 +-- .../api_resources/stories/test_highlights.py | 32 +++--- tests/api_resources/test_accounts.py | 12 +-- tests/api_resources/test_authenticate.py | 44 ++++---- tests/api_resources/test_notifications.py | 4 +- tests/api_resources/test_profiles.py | 4 +- tests/api_resources/test_smart_links.py | 100 +++++++++--------- tests/api_resources/test_stored.py | 36 +++---- tests/api_resources/test_tracking_links.py | 72 ++++++------- tests/api_resources/test_trial_links.py | 88 +++++++-------- tests/api_resources/test_user_lists.py | 16 +-- 14 files changed, 240 insertions(+), 240 deletions(-) diff --git a/.stats.yml b/.stats.yml index c0182bd..7ad8da5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 266 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bd98dfd5eb9c197536b1a50c0f7f20c7a946ab0b1391ecbd99370981c8d3caa6.yml -openapi_spec_hash: bc927ca065b20e14d6381988600c8afc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-bdf0ec6c222e345e512af7c9c9ddc55c0fa72d3860a8c8be3e747667c8c31a81.yml +openapi_spec_hash: af3728e576ac859886d59cc48d3a513d config_hash: 397c91e15c0024f8b5bbed9b82c2348c diff --git a/tests/api_resources/engagement/test_messages.py b/tests/api_resources/engagement/test_messages.py index 4820aa1..7506a92 100644 --- a/tests/api_resources/engagement/test_messages.py +++ b/tests/api_resources/engagement/test_messages.py @@ -24,7 +24,7 @@ class TestMessages: @parametrize def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -33,7 +33,7 @@ def test_method_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> None: message = client.engagement.messages.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -47,7 +47,7 @@ def test_method_get_message_buyers_with_all_params(self, client: OnlyFansAPI) -> @parametrize def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: response = client.engagement.messages.with_raw_response.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -60,7 +60,7 @@ def test_raw_response_get_message_buyers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> None: with client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -76,7 +76,7 @@ def test_streaming_response_get_message_buyers(self, client: OnlyFansAPI) -> Non def test_path_params_get_message_buyers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.engagement.messages.with_raw_response.get_message_buyers( - message_id="id", + message_id="ut", account="", ) @@ -148,7 +148,7 @@ class TestAsyncMessages: @parametrize async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(MessageGetMessageBuyersResponse, message, path=["response"]) @@ -157,7 +157,7 @@ async def test_method_get_message_buyers(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_get_message_buyers_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: message = await async_client.engagement.messages.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", limit=10, marker=0, @@ -171,7 +171,7 @@ async def test_method_get_message_buyers_with_all_params(self, async_client: Asy @parametrize async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -184,7 +184,7 @@ async def test_raw_response_get_message_buyers(self, async_client: AsyncOnlyFans @parametrize async def test_streaming_response_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.engagement.messages.with_streaming_response.get_message_buyers( - message_id="id", + message_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -200,7 +200,7 @@ async def test_streaming_response_get_message_buyers(self, async_client: AsyncOn async def test_path_params_get_message_buyers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.engagement.messages.with_raw_response.get_message_buyers( - message_id="id", + message_id="ut", account="", ) diff --git a/tests/api_resources/media/vault/lists/test_media.py b/tests/api_resources/media/vault/lists/test_media.py index c1bc309..cd24aac 100644 --- a/tests/api_resources/media/vault/lists/test_media.py +++ b/tests/api_resources/media/vault/lists/test_media.py @@ -24,7 +24,7 @@ class TestMedia: @parametrize def test_method_add(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.add( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -34,7 +34,7 @@ def test_method_add(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -48,7 +48,7 @@ def test_raw_response_add(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.add( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -65,7 +65,7 @@ def test_streaming_response_add(self, client: OnlyFansAPI) -> None: def test_path_params_add(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="temporibus", account="", media_ids=["string"], ) @@ -81,7 +81,7 @@ def test_path_params_add(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove(self, client: OnlyFansAPI) -> None: media = client.media.vault.lists.media.remove( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -91,7 +91,7 @@ def test_method_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove(self, client: OnlyFansAPI) -> None: response = client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -105,7 +105,7 @@ def test_raw_response_remove(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: with client.media.vault.lists.media.with_streaming_response.remove( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -122,7 +122,7 @@ def test_streaming_response_remove(self, client: OnlyFansAPI) -> None: def test_path_params_remove(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="temporibus", account="", media_ids=["string"], ) @@ -144,7 +144,7 @@ class TestAsyncMedia: @parametrize async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.add( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -154,7 +154,7 @@ async def test_method_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -168,7 +168,7 @@ async def test_raw_response_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.add( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -185,7 +185,7 @@ async def test_streaming_response_add(self, async_client: AsyncOnlyFansAPI) -> N async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.add( - list_id="est", + list_id="temporibus", account="", media_ids=["string"], ) @@ -201,7 +201,7 @@ async def test_path_params_add(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: media = await async_client.media.vault.lists.media.remove( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -211,7 +211,7 @@ async def test_method_remove(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) @@ -225,7 +225,7 @@ async def test_raw_response_remove(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.media.vault.lists.media.with_streaming_response.remove( - list_id="est", + list_id="temporibus", account="acct_XXXXXXXXXXXXXXX", media_ids=["string"], ) as response: @@ -242,7 +242,7 @@ async def test_streaming_response_remove(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_remove(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.media.vault.lists.media.with_raw_response.remove( - list_id="est", + list_id="temporibus", account="", media_ids=["string"], ) diff --git a/tests/api_resources/saved_for_later/messages/test_settings.py b/tests/api_resources/saved_for_later/messages/test_settings.py index aa735c9..a62ccbd 100644 --- a/tests/api_resources/saved_for_later/messages/test_settings.py +++ b/tests/api_resources/saved_for_later/messages/test_settings.py @@ -110,7 +110,7 @@ def test_path_params_disable_automatic_messaging(self, client: OnlyFansAPI) -> N def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: setting = client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -119,7 +119,7 @@ def test_method_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: response = client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert response.is_closed is True @@ -132,7 +132,7 @@ def test_raw_response_enable_or_update_automatic_messaging(self, client: OnlyFan def test_streaming_response_enable_or_update_automatic_messaging(self, client: OnlyFansAPI) -> None: with client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -148,7 +148,7 @@ def test_path_params_enable_or_update_automatic_messaging(self, client: OnlyFans with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) @@ -246,7 +246,7 @@ async def test_path_params_disable_automatic_messaging(self, async_client: Async async def test_method_enable_or_update_automatic_messaging(self, async_client: AsyncOnlyFansAPI) -> None: setting = await async_client.saved_for_later.messages.settings.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) assert_matches_type(SettingEnableOrUpdateAutomaticMessagingResponse, setting, path=["response"]) @@ -256,7 +256,7 @@ async def test_raw_response_enable_or_update_automatic_messaging(self, async_cli response = ( await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) @@ -273,7 +273,7 @@ async def test_streaming_response_enable_or_update_automatic_messaging( async with ( async_client.saved_for_later.messages.settings.with_streaming_response.enable_or_update_automatic_messaging( account="acct_XXXXXXXXXXXXXXX", - period=48, + period=24, ) ) as response: assert not response.is_closed @@ -290,5 +290,5 @@ async def test_path_params_enable_or_update_automatic_messaging(self, async_clie with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.saved_for_later.messages.settings.with_raw_response.enable_or_update_automatic_messaging( account="", - period=48, + period=24, ) diff --git a/tests/api_resources/stories/test_highlights.py b/tests/api_resources/stories/test_highlights.py index 122983a..cf15eaa 100644 --- a/tests/api_resources/stories/test_highlights.py +++ b/tests/api_resources/stories/test_highlights.py @@ -285,7 +285,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_add_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.add_story( - path_story_id="quia", + path_story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -296,7 +296,7 @@ def test_method_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -311,7 +311,7 @@ def test_raw_response_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.add_story( - path_story_id="quia", + path_story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -329,7 +329,7 @@ def test_streaming_response_add_story(self, client: OnlyFansAPI) -> None: def test_path_params_add_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="quos", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -347,7 +347,7 @@ def test_path_params_add_story(self, client: OnlyFansAPI) -> None: @parametrize def test_method_remove_story(self, client: OnlyFansAPI) -> None: highlight = client.stories.highlights.remove_story( - story_id="quia", + story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -357,7 +357,7 @@ def test_method_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: response = client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -371,7 +371,7 @@ def test_raw_response_remove_story(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: with client.stories.highlights.with_streaming_response.remove_story( - story_id="quia", + story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -388,7 +388,7 @@ def test_streaming_response_remove_story(self, client: OnlyFansAPI) -> None: def test_path_params_remove_story(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="quos", account="", highlight_id=1234567890, ) @@ -666,7 +666,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.add_story( - path_story_id="quia", + path_story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -677,7 +677,7 @@ async def test_method_add_story(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -692,7 +692,7 @@ async def test_raw_response_add_story(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.add_story( - path_story_id="quia", + path_story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, body_story_id=2345678901, @@ -710,7 +710,7 @@ async def test_streaming_response_add_story(self, async_client: AsyncOnlyFansAPI async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.add_story( - path_story_id="quia", + path_story_id="quos", account="", highlight_id=1234567890, body_story_id=2345678901, @@ -728,7 +728,7 @@ async def test_path_params_add_story(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: highlight = await async_client.stories.highlights.remove_story( - story_id="quia", + story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -738,7 +738,7 @@ async def test_method_remove_story(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) @@ -752,7 +752,7 @@ async def test_raw_response_remove_story(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.stories.highlights.with_streaming_response.remove_story( - story_id="quia", + story_id="quos", account="acct_XXXXXXXXXXXXXXX", highlight_id=1234567890, ) as response: @@ -769,7 +769,7 @@ async def test_streaming_response_remove_story(self, async_client: AsyncOnlyFans async def test_path_params_remove_story(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.stories.highlights.with_raw_response.remove_story( - story_id="quia", + story_id="quos", account="", highlight_id=1234567890, ) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index dc66d57..761219e 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_disconnect(self, client: OnlyFansAPI) -> None: account = client.accounts.disconnect( - "cumque", + "perspiciatis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -67,7 +67,7 @@ def test_method_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: response = client.accounts.with_raw_response.disconnect( - "cumque", + "perspiciatis", ) assert response.is_closed is True @@ -79,7 +79,7 @@ def test_raw_response_disconnect(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_disconnect(self, client: OnlyFansAPI) -> None: with client.accounts.with_streaming_response.disconnect( - "cumque", + "perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -145,7 +145,7 @@ async def test_streaming_response_list(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: account = await async_client.accounts.disconnect( - "cumque", + "perspiciatis", ) assert_matches_type(Optional[AccountDisconnectResponse], account, path=["response"]) @@ -153,7 +153,7 @@ async def test_method_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.accounts.with_raw_response.disconnect( - "cumque", + "perspiciatis", ) assert response.is_closed is True @@ -165,7 +165,7 @@ async def test_raw_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_disconnect(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.accounts.with_streaming_response.disconnect( - "cumque", + "perspiciatis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_authenticate.py b/tests/api_resources/test_authenticate.py index 30446e0..b5af615 100644 --- a/tests/api_resources/test_authenticate.py +++ b/tests/api_resources/test_authenticate.py @@ -159,22 +159,22 @@ def test_method_start(self, client: OnlyFansAPI) -> None: @parametrize def test_method_start_with_all_params(self, client: OnlyFansAPI) -> None: authenticate = client.authenticate.start( - auth_id="saepe", + auth_id="cum", auth_type="mobile_app", - cookies="nam", + cookies="quam", custom_proxy={ "host": "proxy.example.com", - "password": "0F7'FG,@", + "password": "E!4Iu({s$6X7S", "port": 8080, - "username": "quia", + "username": "qui", }, - email="may76@example.org", - force_connect=True, - name="laboriosam", - password="O`hSV!4]?3d,j", - proxy_country="uk", - user_agent="quos", - xbc="consequatur", + email="mccullough.ursula@example.org", + force_connect=False, + name="quia", + password="13?1QAe", + proxy_country="us", + user_agent="nam", + xbc="et", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) @@ -394,22 +394,22 @@ async def test_method_start(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_start_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: authenticate = await async_client.authenticate.start( - auth_id="saepe", + auth_id="cum", auth_type="mobile_app", - cookies="nam", + cookies="quam", custom_proxy={ "host": "proxy.example.com", - "password": "0F7'FG,@", + "password": "E!4Iu({s$6X7S", "port": 8080, - "username": "quia", + "username": "qui", }, - email="may76@example.org", - force_connect=True, - name="laboriosam", - password="O`hSV!4]?3d,j", - proxy_country="uk", - user_agent="quos", - xbc="consequatur", + email="mccullough.ursula@example.org", + force_connect=False, + name="quia", + password="13?1QAe", + proxy_country="us", + user_agent="nam", + xbc="et", ) assert_matches_type(AuthenticateStartResponse, authenticate, path=["response"]) diff --git a/tests/api_resources/test_notifications.py b/tests/api_resources/test_notifications.py index 583d8ad..b215885 100644 --- a/tests/api_resources/test_notifications.py +++ b/tests/api_resources/test_notifications.py @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: from_id=123, limit=10, skip_users="all", - type="all", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) @@ -228,7 +228,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) from_id=123, limit=10, skip_users="all", - type="all", + type="purchases", ) assert_matches_type(NotificationListResponse, notification, path=["response"]) diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 65694e2..bd4f616 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: def test_method_retrieve_with_all_params(self, client: OnlyFansAPI) -> None: profile = client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) @@ -87,7 +87,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_retrieve_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: profile = await async_client.profiles.retrieve( username="madison420ivy", - fresh=True, + fresh=False, ) assert_matches_type(ProfileRetrieveResponse, profile, path=["response"]) diff --git a/tests/api_resources/test_smart_links.py b/tests/api_resources/test_smart_links.py index 4a57e52..dfb6323 100644 --- a/tests/api_resources/test_smart_links.py +++ b/tests/api_resources/test_smart_links.py @@ -131,7 +131,7 @@ def test_method_list(self, client: OnlyFansAPI) -> None: def test_method_list_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list( account_ids="acct_abc123,acct_def456", - filter={"tags": ["cnluwurcl"]}, + filter={"tags": ["vdourbabcorxulddydttmbr"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -208,7 +208,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -216,7 +216,7 @@ def test_method_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -230,7 +230,7 @@ def test_method_list_clicks_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", ) assert response.is_closed is True @@ -242,7 +242,7 @@ def test_raw_response_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_clicks(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -264,7 +264,7 @@ def test_path_params_list_clicks(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -272,7 +272,7 @@ def test_method_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -288,7 +288,7 @@ def test_method_list_conversions_with_all_params(self, client: OnlyFansAPI) -> N @parametrize def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", ) assert response.is_closed is True @@ -300,7 +300,7 @@ def test_raw_response_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_conversions(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -322,7 +322,7 @@ def test_path_params_list_conversions(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -330,7 +330,7 @@ def test_method_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -345,7 +345,7 @@ def test_method_list_fans_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", ) assert response.is_closed is True @@ -357,7 +357,7 @@ def test_raw_response_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_fans(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -379,7 +379,7 @@ def test_path_params_list_fans(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="non", + smart_link_id="nobis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -387,7 +387,7 @@ def test_method_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.list_spenders( - smart_link_id="non", + smart_link_id="nobis", limit=50, min_spend=1, offset=0, @@ -398,7 +398,7 @@ def test_method_list_spenders_with_all_params(self, client: OnlyFansAPI) -> None @parametrize def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.list_spenders( - smart_link_id="non", + smart_link_id="nobis", ) assert response.is_closed is True @@ -410,7 +410,7 @@ def test_raw_response_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_spenders(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.list_spenders( - smart_link_id="non", + smart_link_id="nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -432,7 +432,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", ) assert smart_link is None @@ -440,7 +440,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -451,7 +451,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -463,7 +463,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -485,7 +485,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -493,7 +493,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: smart_link = client.smart_links.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -503,7 +503,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", ) assert response.is_closed is True @@ -515,7 +515,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -643,7 +643,7 @@ async def test_method_list(self, async_client: AsyncOnlyFansAPI) -> None: async def test_method_list_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list( account_ids="acct_abc123,acct_def456", - filter={"tags": ["cnluwurcl"]}, + filter={"tags": ["vdourbabcorxulddydttmbr"]}, limit=50, meta_pixel_ids="1,2", name="Instagram", @@ -720,7 +720,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", ) assert_matches_type(SmartLinkListClicksResponse, smart_link, path=["response"]) @@ -728,7 +728,7 @@ async def test_method_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", include_bots=True, @@ -742,7 +742,7 @@ async def test_method_list_clicks_with_all_params(self, async_client: AsyncOnlyF @parametrize async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", ) assert response.is_closed is True @@ -754,7 +754,7 @@ async def test_raw_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_streaming_response_list_clicks(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_clicks( - smart_link_id="aliquam", + smart_link_id="culpa", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -776,7 +776,7 @@ async def test_path_params_list_clicks(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", ) assert_matches_type(SmartLinkListConversionsResponse, smart_link, path=["response"]) @@ -784,7 +784,7 @@ async def test_method_list_conversions(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_method_list_conversions_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", conversion_type="new_transaction", date_end="2026-01-07T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -800,7 +800,7 @@ async def test_method_list_conversions_with_all_params(self, async_client: Async @parametrize async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", ) assert response.is_closed is True @@ -812,7 +812,7 @@ async def test_raw_response_list_conversions(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_conversions(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_conversions( - smart_link_id="ut", + smart_link_id="nemo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -834,7 +834,7 @@ async def test_path_params_list_conversions(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", ) assert_matches_type(SmartLinkListFansResponse, smart_link, path=["response"]) @@ -842,7 +842,7 @@ async def test_method_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", has_messages=True, limit=100, min_messages_sent_by_fan=3, @@ -857,7 +857,7 @@ async def test_method_list_fans_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", ) assert response.is_closed is True @@ -869,7 +869,7 @@ async def test_raw_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_list_fans(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_fans( - smart_link_id="consequatur", + smart_link_id="ab", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -891,7 +891,7 @@ async def test_path_params_list_fans(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="non", + smart_link_id="nobis", ) assert_matches_type(SmartLinkListSpendersResponse, smart_link, path=["response"]) @@ -899,7 +899,7 @@ async def test_method_list_spenders(self, async_client: AsyncOnlyFansAPI) -> Non @parametrize async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.list_spenders( - smart_link_id="non", + smart_link_id="nobis", limit=50, min_spend=1, offset=0, @@ -910,7 +910,7 @@ async def test_method_list_spenders_with_all_params(self, async_client: AsyncOnl @parametrize async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.list_spenders( - smart_link_id="non", + smart_link_id="nobis", ) assert response.is_closed is True @@ -922,7 +922,7 @@ async def test_raw_response_list_spenders(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_list_spenders(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.list_spenders( - smart_link_id="non", + smart_link_id="nobis", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -944,7 +944,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", ) assert smart_link is None @@ -952,7 +952,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", revenue_basis="net", @@ -963,7 +963,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", ) assert response.is_closed is True @@ -975,7 +975,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_cohort_arps( - smart_link_id="non", + smart_link_id="praesentium", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -997,7 +997,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", ) assert_matches_type(SmartLinkRetrieveStatsResponse, smart_link, path=["response"]) @@ -1005,7 +1005,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: smart_link = await async_client.smart_links.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", ) @@ -1015,7 +1015,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.smart_links.with_raw_response.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", ) assert response.is_closed is True @@ -1027,7 +1027,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.smart_links.with_streaming_response.retrieve_stats( - smart_link_id="facilis", + smart_link_id="quo", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/test_stored.py b/tests/api_resources/test_stored.py index 79b8175..09e171f 100644 --- a/tests/api_resources/test_stored.py +++ b/tests/api_resources/test_stored.py @@ -36,8 +36,8 @@ def test_method_list_shared_tracking_links_with_all_params(self, client: OnlyFan stored = client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "f", - "tags": ["mo"], + "search": "ry", + "tags": ["cjemwamcbtyr"], }, limit=10, offset=0, @@ -92,8 +92,8 @@ def test_method_list_shared_trial_links_with_all_params(self, client: OnlyFansAP stored = client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "p", - "tags": ["urjmkyjkzwngdrx"], + "search": "njigsjwdljnxqrcj", + "tags": ["vbhnpixelrgucwsizwpddy"], }, limit=10, offset=0, @@ -148,9 +148,9 @@ def test_method_list_tracking_links_with_all_params(self, client: OnlyFansAPI) - stored = client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "mhvucwarcgrvdzpgltagvkbfg", - "tags": ["leocwjnteqpuui"], + "include_smart_links": False, + "search": "iexiqorn", + "tags": ["gxzdfmlureiljunfswc"], }, limit=10, offset=0, @@ -206,8 +206,8 @@ def test_method_list_trial_links_with_all_params(self, client: OnlyFansAPI) -> N account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "gqhc", - "tags": ["mhkrqevfeorawkc"], + "search": "x", + "tags": ["nkxovprx"], }, limit=10, offset=0, @@ -268,8 +268,8 @@ async def test_method_list_shared_tracking_links_with_all_params(self, async_cli stored = await async_client.stored.list_shared_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "f", - "tags": ["mo"], + "search": "ry", + "tags": ["cjemwamcbtyr"], }, limit=10, offset=0, @@ -324,8 +324,8 @@ async def test_method_list_shared_trial_links_with_all_params(self, async_client stored = await async_client.stored.list_shared_trial_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "search": "p", - "tags": ["urjmkyjkzwngdrx"], + "search": "njigsjwdljnxqrcj", + "tags": ["vbhnpixelrgucwsizwpddy"], }, limit=10, offset=0, @@ -380,9 +380,9 @@ async def test_method_list_tracking_links_with_all_params(self, async_client: As stored = await async_client.stored.list_tracking_links( account="acct_XXXXXXXXXXXXXXX", filter={ - "include_smart_links": True, - "search": "mhvucwarcgrvdzpgltagvkbfg", - "tags": ["leocwjnteqpuui"], + "include_smart_links": False, + "search": "iexiqorn", + "tags": ["gxzdfmlureiljunfswc"], }, limit=10, offset=0, @@ -438,8 +438,8 @@ async def test_method_list_trial_links_with_all_params(self, async_client: Async account="acct_XXXXXXXXXXXXXXX", filter={ "include_smart_links": False, - "search": "gqhc", - "tags": ["mhkrqevfeorawkc"], + "search": "x", + "tags": ["nkxovprx"], }, limit=10, offset=0, diff --git a/tests/api_resources/test_tracking_links.py b/tests/api_resources/test_tracking_links.py index 61d272c..b057b66 100644 --- a/tests/api_resources/test_tracking_links.py +++ b/tests/api_resources/test_tracking_links.py @@ -85,7 +85,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -107,7 +107,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -123,7 +123,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="", ) @@ -195,7 +195,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -204,7 +204,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -217,7 +217,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -233,7 +233,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="", ) @@ -247,7 +247,7 @@ def test_path_params_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -256,7 +256,7 @@ def test_method_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -268,7 +268,7 @@ def test_method_get_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> No @parametrize def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -281,7 +281,7 @@ def test_raw_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -297,7 +297,7 @@ def test_streaming_response_get_cohort_arps(self, client: OnlyFansAPI) -> None: def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="", ) @@ -311,7 +311,7 @@ def test_path_params_get_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -320,7 +320,7 @@ def test_method_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: tracking_link = client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -331,7 +331,7 @@ def test_method_get_stats_with_all_params(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: response = client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -344,7 +344,7 @@ def test_raw_response_get_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: with client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -360,7 +360,7 @@ def test_streaming_response_get_stats(self, client: OnlyFansAPI) -> None: def test_path_params_get_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="", ) @@ -562,7 +562,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkRetrieveResponse, tracking_link, path=["response"]) @@ -571,7 +571,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -584,7 +584,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -600,7 +600,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.retrieve( - tracking_link_id="qui", + tracking_link_id="tempora", account="", ) @@ -672,7 +672,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkDeleteResponse, tracking_link, path=["response"]) @@ -681,7 +681,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) @@ -694,7 +694,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -710,7 +710,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.delete( - tracking_link_id="qui", + tracking_link_id="tempora", account="", ) @@ -724,7 +724,7 @@ async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) assert tracking_link is None @@ -733,7 +733,7 @@ async def test_method_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -745,7 +745,7 @@ async def test_method_get_cohort_arps_with_all_params(self, async_client: AsyncO @parametrize async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) @@ -758,7 +758,7 @@ async def test_raw_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI @parametrize async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -774,7 +774,7 @@ async def test_streaming_response_get_cohort_arps(self, async_client: AsyncOnlyF async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_cohort_arps( - tracking_link_id="laudantium", + tracking_link_id="rerum", account="", ) @@ -788,7 +788,7 @@ async def test_path_params_get_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrackingLinkGetStatsResponse, tracking_link, path=["response"]) @@ -797,7 +797,7 @@ async def test_method_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: tracking_link = await async_client.tracking_links.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -808,7 +808,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncOnlyFan @parametrize async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) @@ -821,7 +821,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> N @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.tracking_links.with_streaming_response.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -837,7 +837,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncOnlyFansAPI async def test_path_params_get_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.tracking_links.with_raw_response.get_stats( - tracking_link_id="quia", + tracking_link_id="in", account="", ) diff --git a/tests/api_resources/test_trial_links.py b/tests/api_resources/test_trial_links.py index fb3c401..913cbd5 100644 --- a/tests/api_resources/test_trial_links.py +++ b/tests/api_resources/test_trial_links.py @@ -96,7 +96,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -105,7 +105,7 @@ def test_method_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -118,7 +118,7 @@ def test_raw_response_retrieve(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -134,7 +134,7 @@ def test_streaming_response_retrieve(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="", ) @@ -211,7 +211,7 @@ def test_path_params_list(self, client: OnlyFansAPI) -> None: @parametrize def test_method_delete(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -220,7 +220,7 @@ def test_method_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_delete(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: OnlyFansAPI) -> None: def test_path_params_delete(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="", ) @@ -327,7 +327,7 @@ def test_path_params_list_spenders(self, client: OnlyFansAPI) -> None: @parametrize def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -338,7 +338,7 @@ def test_method_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -353,7 +353,7 @@ def test_raw_response_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -371,7 +371,7 @@ def test_streaming_response_list_subscribers(self, client: OnlyFansAPI) -> None: def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="", limit=10, offset=0, @@ -389,7 +389,7 @@ def test_path_params_list_subscribers(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -398,7 +398,7 @@ def test_method_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -410,7 +410,7 @@ def test_method_retrieve_cohort_arps_with_all_params(self, client: OnlyFansAPI) @parametrize def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -423,7 +423,7 @@ def test_raw_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -439,7 +439,7 @@ def test_streaming_response_retrieve_cohort_arps(self, client: OnlyFansAPI) -> N def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="", ) @@ -453,7 +453,7 @@ def test_path_params_retrieve_cohort_arps(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -462,7 +462,7 @@ def test_method_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> None: trial_link = client.trial_links.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -473,7 +473,7 @@ def test_method_retrieve_stats_with_all_params(self, client: OnlyFansAPI) -> Non @parametrize def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: response = client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -486,7 +486,7 @@ def test_raw_response_retrieve_stats(self, client: OnlyFansAPI) -> None: @parametrize def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: with client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -502,7 +502,7 @@ def test_streaming_response_retrieve_stats(self, client: OnlyFansAPI) -> None: def test_path_params_retrieve_stats(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="", ) @@ -589,7 +589,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveResponse, trial_link, path=["response"]) @@ -598,7 +598,7 @@ async def test_method_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -611,7 +611,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -627,7 +627,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncOnlyFansAPI) async def test_path_params_retrieve(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve( - trial_link_id="repellat", + trial_link_id="adipisci", account="", ) @@ -704,7 +704,7 @@ async def test_path_params_list(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkDeleteResponse, trial_link, path=["response"]) @@ -713,7 +713,7 @@ async def test_method_delete(self, async_client: AsyncOnlyFansAPI) -> None: @parametrize async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) @@ -726,7 +726,7 @@ async def test_raw_response_delete(self, async_client: AsyncOnlyFansAPI) -> None @parametrize async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -742,7 +742,7 @@ async def test_streaming_response_delete(self, async_client: AsyncOnlyFansAPI) - async def test_path_params_delete(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.delete( - trial_link_id="repellat", + trial_link_id="adipisci", account="", ) @@ -820,7 +820,7 @@ async def test_path_params_list_spenders(self, async_client: AsyncOnlyFansAPI) - @parametrize async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -831,7 +831,7 @@ async def test_method_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> @parametrize async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -846,7 +846,7 @@ async def test_raw_response_list_subscribers(self, async_client: AsyncOnlyFansAP @parametrize async def test_streaming_response_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="acct_XXXXXXXXXXXXXXX", limit=10, offset=0, @@ -864,7 +864,7 @@ async def test_streaming_response_list_subscribers(self, async_client: AsyncOnly async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.list_subscribers( - trial_link_id="labore", + trial_link_id="iusto", account="", limit=10, offset=0, @@ -882,7 +882,7 @@ async def test_path_params_list_subscribers(self, async_client: AsyncOnlyFansAPI @parametrize async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) assert trial_link is None @@ -891,7 +891,7 @@ async def test_method_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", acquisition_end="2026-01-31T23:59:59Z", acquisition_start="2026-01-01T00:00:00Z", @@ -903,7 +903,7 @@ async def test_method_retrieve_cohort_arps_with_all_params(self, async_client: A @parametrize async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) @@ -916,7 +916,7 @@ async def test_raw_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFa @parametrize async def test_streaming_response_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -932,7 +932,7 @@ async def test_streaming_response_retrieve_cohort_arps(self, async_client: Async async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_cohort_arps( - trial_link_id="voluptatum", + trial_link_id="minus", account="", ) @@ -946,7 +946,7 @@ async def test_path_params_retrieve_cohort_arps(self, async_client: AsyncOnlyFan @parametrize async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) assert_matches_type(TrialLinkRetrieveStatsResponse, trial_link, path=["response"]) @@ -955,7 +955,7 @@ async def test_method_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> No @parametrize async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOnlyFansAPI) -> None: trial_link = await async_client.trial_links.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", date_end="2026-01-31T23:59:59Z", date_start="2026-01-01T00:00:00Z", @@ -966,7 +966,7 @@ async def test_method_retrieve_stats_with_all_params(self, async_client: AsyncOn @parametrize async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) @@ -979,7 +979,7 @@ async def test_raw_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) @parametrize async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.trial_links.with_streaming_response.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="acct_XXXXXXXXXXXXXXX", ) as response: assert not response.is_closed @@ -995,7 +995,7 @@ async def test_streaming_response_retrieve_stats(self, async_client: AsyncOnlyFa async def test_path_params_retrieve_stats(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.trial_links.with_raw_response.retrieve_stats( - trial_link_id="veniam", + trial_link_id="ut", account="", ) diff --git a/tests/api_resources/test_user_lists.py b/tests/api_resources/test_user_lists.py index 50c3b33..3ddfe6a 100644 --- a/tests/api_resources/test_user_lists.py +++ b/tests/api_resources/test_user_lists.py @@ -28,7 +28,7 @@ class TestUserLists: def test_method_create(self, client: OnlyFansAPI) -> None: user_list = client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -37,7 +37,7 @@ def test_method_create(self, client: OnlyFansAPI) -> None: def test_raw_response_create(self, client: OnlyFansAPI) -> None: response = client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) assert response.is_closed is True @@ -50,7 +50,7 @@ def test_raw_response_create(self, client: OnlyFansAPI) -> None: def test_streaming_response_create(self, client: OnlyFansAPI) -> None: with client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -66,7 +66,7 @@ def test_path_params_create(self, client: OnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): client.user_lists.with_raw_response.create( account="", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) @pytest.mark.skip(reason="Mock server tests are disabled") @@ -304,7 +304,7 @@ class TestAsyncUserLists: async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: user_list = await async_client.user_lists.create( account="acct_XXXXXXXXXXXXXXX", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) assert_matches_type(UserListCreateResponse, user_list, path=["response"]) @@ -313,7 +313,7 @@ async def test_method_create(self, async_client: AsyncOnlyFansAPI) -> None: async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None: response = await async_client.user_lists.with_raw_response.create( account="acct_XXXXXXXXXXXXXXX", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) assert response.is_closed is True @@ -326,7 +326,7 @@ async def test_raw_response_create(self, async_client: AsyncOnlyFansAPI) -> None async def test_streaming_response_create(self, async_client: AsyncOnlyFansAPI) -> None: async with async_client.user_lists.with_streaming_response.create( account="acct_XXXXXXXXXXXXXXX", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -342,7 +342,7 @@ async def test_path_params_create(self, async_client: AsyncOnlyFansAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account` but received ''"): await async_client.user_lists.with_raw_response.create( account="", - name="fjlvbeydblzfbmpqkaxhxzf", + name="vpdeabzxzht", ) @pytest.mark.skip(reason="Mock server tests are disabled") From 93058f9f5366b2e10319de19bf2656b69961b030 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 20:13:08 +0000 Subject: [PATCH 48/48] release: 0.2.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 52 +++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- src/onlyfansapi/_version.py | 2 +- 4 files changed, 55 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cda9cbd..10f3091 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.2" + ".": "0.2.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e9d2a81..d7174bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,57 @@ # Changelog +## 0.2.0 (2026-06-12) + +Full Changelog: [v0.1.2...v0.2.0](https://github.com/onlyfansapi/onlyfansapi-python/compare/v0.1.2...v0.2.0) + +### Features + +* **api:** api update ([56d3af6](https://github.com/onlyfansapi/onlyfansapi-python/commit/56d3af65bb3977a2fe5e4ba229cff154cd5fd3b6)) +* **api:** api update ([afd3835](https://github.com/onlyfansapi/onlyfansapi-python/commit/afd3835d291685dc853fb3d65912f56dc623c485)) +* **api:** api update ([bbaa897](https://github.com/onlyfansapi/onlyfansapi-python/commit/bbaa89714c89ec78261079236b42f2d5d1ddb930)) +* **api:** api update ([06c6eef](https://github.com/onlyfansapi/onlyfansapi-python/commit/06c6eefd0f8f8cb4ee28d7977dd27e594f14c155)) +* **api:** api update ([a96c6d7](https://github.com/onlyfansapi/onlyfansapi-python/commit/a96c6d73c2a5f5dfed976f2ec235b082c2569872)) +* **api:** api update ([eb632d4](https://github.com/onlyfansapi/onlyfansapi-python/commit/eb632d41920d0f838135d5f1d66502298b430bcc)) +* **api:** api update ([6b9ad4e](https://github.com/onlyfansapi/onlyfansapi-python/commit/6b9ad4e06d8663bb4a7959432dbdd1f253b3436e)) +* **api:** api update ([98a84e7](https://github.com/onlyfansapi/onlyfansapi-python/commit/98a84e77ee2bf89462136939c7b6ddfd39a0c619)) +* **api:** api update ([f0a25cd](https://github.com/onlyfansapi/onlyfansapi-python/commit/f0a25cd6b38cdae7c64dfeb113c489b216dda816)) +* **api:** api update ([8bbc9d6](https://github.com/onlyfansapi/onlyfansapi-python/commit/8bbc9d67d84d394af2936841c24ca07f5cce0944)) +* **api:** api update ([3551f5f](https://github.com/onlyfansapi/onlyfansapi-python/commit/3551f5fbba68388f3c5215acec8488b22b83bf30)) +* **api:** api update ([57a911a](https://github.com/onlyfansapi/onlyfansapi-python/commit/57a911acb35d93fd2586a5ae34cc6fd708943b2e)) +* **api:** api update ([e64239d](https://github.com/onlyfansapi/onlyfansapi-python/commit/e64239d0f6358f959e78a679908eddb39f8bff21)) +* **api:** api update ([aa704e0](https://github.com/onlyfansapi/onlyfansapi-python/commit/aa704e0fa956d67a1551857fecfbceaf52a42b5c)) +* **api:** api update ([8ada88c](https://github.com/onlyfansapi/onlyfansapi-python/commit/8ada88cd402259d9daa8cd20e95e3b44d67e0bf5)) +* **api:** api update ([924de03](https://github.com/onlyfansapi/onlyfansapi-python/commit/924de03411c4481b1bf81c6b67dad9d5640c0916)) +* **api:** api update ([fe65d3e](https://github.com/onlyfansapi/onlyfansapi-python/commit/fe65d3ebaaf73dd96c60fbb8dd96292e8b13ae5a)) +* **api:** api update ([b466abb](https://github.com/onlyfansapi/onlyfansapi-python/commit/b466abb391150e3ce362ab9846f672facc69551f)) +* **api:** api update ([db0732e](https://github.com/onlyfansapi/onlyfansapi-python/commit/db0732e227750931db1a25a278456fd7b95424fb)) +* **api:** api update ([2952e4b](https://github.com/onlyfansapi/onlyfansapi-python/commit/2952e4b60838f01d8bd0e586249cd917d607cb62)) +* **api:** api update ([de81294](https://github.com/onlyfansapi/onlyfansapi-python/commit/de812940595d4332b9f42d267f88f12c9783db1a)) +* **api:** api update ([9e94503](https://github.com/onlyfansapi/onlyfansapi-python/commit/9e9450351d93e7a6bd02ac847569349ec71fddb5)) +* **api:** api update ([43194d7](https://github.com/onlyfansapi/onlyfansapi-python/commit/43194d71262d5d50f797a8ccba2659a6c3c2887f)) +* **api:** api update ([4594ec1](https://github.com/onlyfansapi/onlyfansapi-python/commit/4594ec136232b42f3d456b09516ec08065fdfafd)) +* **api:** api update ([c06f3ab](https://github.com/onlyfansapi/onlyfansapi-python/commit/c06f3abf1381148f5e48b85f0086b1af17e2a0d3)) +* **api:** api update ([3525475](https://github.com/onlyfansapi/onlyfansapi-python/commit/3525475272b3341f91f4b75160f63b106321e139)) +* **api:** api update ([3e7e17b](https://github.com/onlyfansapi/onlyfansapi-python/commit/3e7e17b1e3ab8993aba06ffec2ef5378d18f93d2)) +* **api:** api update ([62090dc](https://github.com/onlyfansapi/onlyfansapi-python/commit/62090dc02ca59eb6efec90625d71d312043b55a1)) +* **api:** api update ([9ce94a8](https://github.com/onlyfansapi/onlyfansapi-python/commit/9ce94a833a666de930b770d1ba2c59596ff2d330)) +* **api:** api update ([cb29cb5](https://github.com/onlyfansapi/onlyfansapi-python/commit/cb29cb5216eaf0bbbc57186287b11e829710b6a1)) +* **api:** api update ([43559da](https://github.com/onlyfansapi/onlyfansapi-python/commit/43559da1af5ee18c58b99677f3cfd559e0e2106e)) +* **api:** api update ([9ffc9d3](https://github.com/onlyfansapi/onlyfansapi-python/commit/9ffc9d354f805880d3363c4084fe49935a7a9d10)) +* **api:** api update ([0942b23](https://github.com/onlyfansapi/onlyfansapi-python/commit/0942b231431790866d93cc2e477082c5aee0b87c)) +* **api:** api update ([88c6d42](https://github.com/onlyfansapi/onlyfansapi-python/commit/88c6d42c3c75411714bd70c03322d76b7960208a)) +* **api:** api update ([af71d0c](https://github.com/onlyfansapi/onlyfansapi-python/commit/af71d0ce89f943af5d27d66a5fbb1cd8e7285f9b)) +* **api:** api update ([015b0d1](https://github.com/onlyfansapi/onlyfansapi-python/commit/015b0d11070c3801c8bb26ff99b2f7f1d9ad5627)) +* **api:** api update ([0babea3](https://github.com/onlyfansapi/onlyfansapi-python/commit/0babea32599dc9d8603ba9e6519f9760367ad1f6)) +* **api:** api update ([196b012](https://github.com/onlyfansapi/onlyfansapi-python/commit/196b0123732493210c74e905d55c82ceafee11b9)) +* **api:** api update ([2c2c2d5](https://github.com/onlyfansapi/onlyfansapi-python/commit/2c2c2d5611f7d22371608b4e105d702fc96cbbd1)) +* **api:** api update ([0a74e45](https://github.com/onlyfansapi/onlyfansapi-python/commit/0a74e45ef5ecbefdfb4b2d3ca47c04004f77ee18)) +* **api:** api update ([2b072d1](https://github.com/onlyfansapi/onlyfansapi-python/commit/2b072d1cb4c48b00c3cd66616334e9edd580899d)) +* **api:** api update ([f2f2094](https://github.com/onlyfansapi/onlyfansapi-python/commit/f2f2094213516b1f79af9f22dc03a84a2a074a1a)) +* **api:** api update ([d22aec4](https://github.com/onlyfansapi/onlyfansapi-python/commit/d22aec4906882366899e5bef242bc1a6ca3ca7d6)) +* **api:** api update ([a67bd8b](https://github.com/onlyfansapi/onlyfansapi-python/commit/a67bd8b1e7a96890aaf430233e80dcebf94e6aa0)) +* **api:** api update ([4b08bce](https://github.com/onlyfansapi/onlyfansapi-python/commit/4b08bcecf591dcc5d35dad618d89d806cddab4b8)) + ## 0.1.2 (2026-05-25) Full Changelog: [v0.1.1...v0.1.2](https://github.com/onlyfansapi/onlyfansapi-python/compare/v0.1.1...v0.1.2) diff --git a/pyproject.toml b/pyproject.toml index 184c99e..856f021 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "onlyfans" -version = "0.1.2" +version = "0.2.0" description = "The official Python library for the OnlyFansAPI API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/onlyfansapi/_version.py b/src/onlyfansapi/_version.py index 790de9b..a6edd99 100644 --- a/src/onlyfansapi/_version.py +++ b/src/onlyfansapi/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "onlyfansapi" -__version__ = "0.1.2" # x-release-please-version +__version__ = "0.2.0" # x-release-please-version